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 (6782,17092,44835,44869,18981,45043,44837,44764,37057,18652,18279,39676,17237,44884,45515,28313,45262,17527,17904,45561,24441,30986,44868,18900,32454,37267,17335,31354,28530,17848,14622,5388,17755,44848,6862,44674,44775,44762,18237,17351,44858,18719,3883,45229,17657,44685,44855,45180,44669,44671,18185,4765,44531,45567,18446,45421,44873,6609,45177,44765,44878,13922,13425,19078,18427,18894,18650,18794,18648,44640)
Unknown column 'np.person' in 'where clause'