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 (17601,17351,17492,18286,18648,13922,44858,14402,5388,44766,44762,18650,44856,17237,44685,13,6782,45286,44765,28313,45516,30986,13425,18894,44884,3,37267,44837,17703,18572,30135,6609,14622,36472,18981,17335,44866,4765,44849,31354,45515,24438,9341,44867,17981,10402,18446,45072,45561,17904,39676,18996,17278,5259,17114,18430,17755,44875,45180,44689,44869,18719,22509,44745,18427,44775,18301,16885,45229,43800)
Unknown column 'np.person' in 'where clause'