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 (18996,44687,44861,44674,45517,45346,44765,17527,5993,43800,45072,44855,44837,44689,45518,44873,44878,17114,32454,45051,39676,30135,18650,18279,45516,5388,17756,28313,45277,17237,18430,22509,24412,18981,44853,18900,17981,17657,17601,44671,44768,44775,17904,18185,6862,3,44669,19078,4686,36472,24438,45515,44851,18301,44711,16935,17771,17703,8753,45567,31354,17556,17755,45421,44894,18688,44856,30986,18894,44875)
Unknown column 'np.person' in 'where clause'