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 (18688,44854,17601,44764,44837,24438,44861,43800,18301,14622,18446,30986,44873,18237,17351,17092,17527,44855,17335,6875,45072,16935,3,17703,18172,18981,44836,13922,30135,44762,9341,16885,17278,34194,13988,19078,44875,37267,17492,18572,17904,13,18279,36472,44867,44767,44851,44884,32454,28313,28530,39676,18648,45277,17756,6862,44870,3883,17835,45567,45421,31354,17755,18996,44894,14402,44766,44765,18042,18719)
Unknown column 'np.person' in 'where clause'