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 (24441,3883,32454,44687,37267,44671,16935,30135,17527,18900,19057,17755,44768,45286,44867,39676,6782,45518,17237,18996,44685,18430,44849,34194,30963,3,44863,17009,4686,6609,44848,44873,28530,44858,17756,17114,44766,13988,44851,17904,44767,44765,18981,17981,13425,19078,44856,5993,18688,18648,18301,44869,16885,17335,6875,44884,8753,18719,14622,18652,17278,44854,44837,45229,44853,44762,45262,9341,17092,13922)
Unknown column 'np.person' in 'where clause'