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 (45421,45043,6862,44861,44762,45042,5410,16935,13425,14622,44853,44767,44745,44837,30986,10402,18427,5993,44848,18981,44674,45516,44531,43800,17755,17237,34194,24441,17835,44865,4765,18719,17904,3883,44775,18446,44863,18301,16885,17492,8753,6782,14402,44849,44884,44854,17278,45286,28530,17114,17771,45072,44739,45277,6609,44855,44878,44858,44868,44856,30135,24412,45346,18279,44689,17981,37267,5388,44765,18996)
Unknown column 'np.person' in 'where clause'