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 (22509,10402,45515,18286,18279,45262,45072,45518,18301,45421,17092,18237,37057,3,18900,5259,44858,45561,45229,44768,6609,30135,5993,17657,17981,44878,43800,14402,37267,6782,44894,44711,17703,44866,13,5388,44669,17527,45277,18996,45346,44868,44856,18719,18446,44869,6875,18688,39676,45516,17556,17492,8753,44875,18430,44867,17237,44884,18650,44848,44837,14622,5410,16935,44685,24441,44849,44765,44861,19057)
Unknown column 'np.person' in 'where clause'