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 (19057,44640,18172,17092,18652,14622,44767,28313,18650,5259,44854,44851,17601,4765,22509,45516,44861,13922,17009,6862,18430,9341,44671,44849,45180,43800,4686,5388,18185,18996,17755,44835,18446,17703,5410,18042,18981,17335,44856,17237,45567,44739,31354,30963,45515,24412,14402,45518,44865,37057,17351,44674,45277,44873,45072,44764,44685,44853,45561,37267,45042,17771,45286,6875,45043,36472,30986,18353,44867,17904)
Unknown column 'np.person' in 'where clause'