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 (17556,14402,17114,31354,44767,18650,44765,18279,44894,44884,44854,4686,10402,5410,44768,8753,28313,37267,6862,44687,16935,17657,45051,17278,44689,24438,45515,18719,44869,17237,18900,18427,44531,44878,24441,39676,45042,18996,18446,44848,18981,18185,5993,45277,17527,44866,44849,22509,9341,16885,4765,45561,44836,17335,6782,44762,18794,44851,44873,44685,3883,44764,17492,44671,18894,17009,45516,44853,13922,17351)
Unknown column 'np.person' in 'where clause'