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 (44865,17657,18430,16885,44531,44853,17278,45286,13988,36472,18650,10402,44836,44765,18286,18794,44870,45277,45517,18688,17351,3,17756,5410,44835,45051,45346,17839,6782,18981,43800,44861,44762,37057,45262,5259,17237,32454,18042,17556,45567,18353,4765,44894,44687,9341,44869,44875,17335,17527,44766,45516,44856,24438,13,44767,44685,45421,18719,17755,30986,44768,44855,44837,18237,14402,4686,18185,44851,16935)
Unknown column 'np.person' in 'where clause'