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 (45515,44531,18286,44854,13988,44766,31354,28313,44687,17556,18185,44868,44669,17839,45277,5388,44837,44640,14622,19078,44851,17527,4765,45346,5993,24412,45516,39676,44836,6862,44878,10402,24438,32454,44863,44855,17237,44768,3883,44870,45286,45072,44867,44853,5259,44767,17848,36472,17981,8753,45262,45517,24441,18353,18301,13922,44845,44835,18688,44865,17755,6875,18430,44765,18279,18996,17835,5410,30986,44873)
Unknown column 'np.person' in 'where clause'