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 (45421,45042,18042,44764,44775,13988,44765,18446,24411,13,6875,44687,17756,18648,45346,17335,13922,5259,24441,9341,45180,16935,44854,18430,22509,8753,18650,18185,28313,17981,18981,45286,44671,44851,4686,18652,17755,18900,44865,45072,30986,17601,18794,44766,18996,28530,44894,45567,44767,44640,3883,44853,4765,44858,19057,17237,6609,45229,18572,34194,44768,44878,31354,18286,45515,37267,44848,24412,16885,18719)
Unknown column 'np.person' in 'where clause'