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 (13988,44878,18981,18185,17848,5993,18446,44867,17657,19057,45043,45277,45072,45567,44762,17755,44853,17092,18794,44768,16885,4686,24441,18427,44855,24438,17703,18572,17009,17278,17756,17835,30963,6782,17492,18996,44851,18894,44861,45346,19078,45286,22509,30986,44856,9341,44848,14402,28313,44884,34194,44868,18652,18172,44764,44766,17237,44685,17981,45561,6609,31354,44854,28530,24411,6862,44674,44687,44671,13425)
Unknown column 'np.person' in 'where clause'