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 (44766,6609,3,24411,17771,18279,45567,17351,45561,18981,24438,13988,18427,17703,44875,3883,17335,17492,17657,18185,44687,44685,44858,37267,13425,45051,43800,18900,17904,9341,44884,44669,45277,45518,44848,18301,16935,17556,24412,44837,18353,17237,5388,17981,5259,10402,17009,5410,18650,44767,17755,19078,44894,45180,44671,4686,34194,6782,6862,8753,45286,32454,14402,44640,6875,14622,16885,44836,17601,44775)
Unknown column 'np.person' in 'where clause'