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 (17335,45042,45346,44671,18981,44849,43800,28313,44835,45516,45277,3,18900,44865,44711,4686,44856,18650,37057,8753,45421,18353,18042,24411,24441,17556,45180,17771,44858,9341,44739,18996,45515,14622,17756,44867,37267,44870,22509,44866,17527,44765,18301,4765,17114,44689,44855,18794,17351,44745,17981,44766,44854,18719,5388,17492,44894,24412,5259,39676,18185,45262,44669,28530,44836,18279,17092,44687,17904,5993)
Unknown column 'np.person' in 'where clause'