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 (44640,22509,18301,36472,4686,30963,44739,17092,45421,44836,44845,44878,17981,44837,17556,24412,5993,6875,30135,19078,45518,18996,44867,44854,45277,17703,5410,9341,45516,39676,45262,18353,45051,14622,45177,17904,44835,17278,44869,18981,6862,44849,3883,4765,18794,18279,45042,44765,44669,6782,44858,17335,44848,24441,18185,44687,17527,45286,44855,44861,43800,44671,28313,3,14402,44856,18652,24411,18650,37057)
Unknown column 'np.person' in 'where clause'