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 (44739,45043,18286,44865,17756,19078,18996,36472,44766,44856,16885,44853,4686,44851,45567,17601,8753,6875,18237,45229,13988,44854,44858,45277,5410,17492,17335,44870,37267,3883,44835,10402,18981,4765,28313,44867,44689,18353,44878,24411,44671,5259,44775,17657,44674,5388,44711,17237,18652,44765,44762,30986,19057,17904,44767,44875,44768,45262,44855,14402,18172,6782,18900,44685,44640,45072,14622,17771,17527,3)
Unknown column 'np.person' in 'where clause'