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 (44861,44739,44865,45072,18279,44640,44711,3,44856,45515,5410,5993,36472,18353,17527,28530,44867,13,44868,44669,18996,18981,13922,44866,45567,13425,44762,43800,18652,45346,37267,4686,44671,44869,24438,17848,34194,16935,45561,44849,17755,14622,8753,44775,5388,30986,30963,10402,32454,17237,4765,44894,45286,44878,17756,44767,44863,18301,44851,9341,17351,18185,17009,18172,44531,18900,18427,24412,22509,3883)
Unknown column 'np.person' in 'where clause'