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 (37057,44767,13988,17237,44764,44894,45180,17839,17904,45043,44854,44849,17009,9341,18446,44739,45262,44669,44870,18981,45421,18430,44867,17114,44873,19057,18279,44835,30986,18794,18172,19078,44685,18237,45518,44856,32454,44858,18572,44851,17756,17556,44671,17703,5993,24438,18353,18688,44878,44865,17527,28313,44866,6862,44674,13425,14622,44845,17335,14402,18996,18900,17981,45051,44768,45229,17278,3883,22509,44837)
Unknown column 'np.person' in 'where clause'