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 (44848,44711,17771,17527,6862,17657,45180,17904,44640,13922,18900,45262,44873,45286,24412,44868,6875,8753,17278,18427,18185,44869,44685,18279,18430,18446,44856,4686,45042,17756,5993,44671,18996,30986,31354,45421,18794,6609,17237,44858,18353,44849,17755,44837,30963,3,19078,14402,24411,18042,44861,5259,18301,17601,16935,34194,13,18719,45043,17114,44867,45346,44674,17351,18650,36472,6782,17703,44766,18172)
Unknown column 'np.person' in 'where clause'