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 (17835,18286,44671,44863,6609,17904,37057,45177,24438,18981,18279,44845,45072,18427,17527,44867,45277,16885,28313,44868,45229,44685,18572,5259,18185,45043,44861,18042,6782,44858,8753,44768,17114,44835,44765,5388,45517,44875,22509,44711,18900,18237,17601,30135,44531,18301,18894,17755,13,18650,17351,24411,44849,19057,44856,44866,17492,17237,18446,44894,18794,17703,10402,17009,4686,28530,45286,44837,44640,44855)
Unknown column 'np.person' in 'where clause'