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 (44768,18648,13425,18650,32454,44868,45042,18900,17848,18981,45515,44873,45286,44767,13,45262,44854,5259,37267,44858,5410,44762,45561,17904,44837,18572,44894,16935,24411,17835,44849,18237,44870,17527,44851,9341,18652,44878,44861,44671,18430,30986,19078,18719,44739,17756,13922,18894,44836,6609,45567,4765,14402,44766,18185,17755,14622,45177,44685,17703,3,5993,10402,44531,17492,18172,44875,5388,44689,6862)
Unknown column 'np.person' in 'where clause'