Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (19057,18172,17904,17771,44848,44873,4686,24411,44640,44767,45277,18279,30986,18688,44836,44870,44875,17092,44866,17835,16885,18981,44851,18237,17335,5259,17278,32454,5993,17527,17756,45567,13988,45561,17981,44835,34194,31354,45180,44762,45421,17703,45518,18572,39676,45286,44531,44671,9341,17009,44764,43800,17492,44711,44853,18286,44854,44894,45517,45177,3883,45042,17237,37267,18648,30135,18353,6862,18794,4765)
Unknown column 'np.person' in 'where clause'