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 (37057,44669,36472,44762,45421,44868,17114,10402,16885,4686,44674,44863,44835,44531,44870,44865,30963,5410,44689,45567,17351,44837,45561,17237,18688,44775,14402,44866,44894,45072,45229,18652,19078,18650,44671,44851,32454,17904,17755,44767,17556,18286,13,18572,28313,44848,43800,31354,18446,3883,44855,17335,9341,18301,18981,24438,37267,45286,17092,44640,44869,44884,44856,17848,45346,30986,44845,3,45262,45517)
Unknown column 'np.person' in 'where clause'