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 (45286,44861,14402,44767,17527,44762,19078,39676,45421,45515,44835,18648,45567,44884,17492,4765,16935,44768,18286,6875,24411,18430,43800,18446,44851,3883,44869,17657,37267,17237,45346,17835,18794,44671,17904,3,44640,24441,18301,44766,45277,45051,10402,18900,17351,18279,18981,44711,44894,13,45262,45561,18719,17703,45072,44837,44848,24438,45518,17755,44669,45180,5388,30135,44687,44870,13922,44745,44868,17009)
Unknown column 'np.person' in 'where clause'