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 (45072,18279,45051,14402,44765,19057,3,17114,17351,44674,24438,10402,44875,44764,5993,18286,44762,45346,6875,44894,18446,44745,6609,6782,43800,44767,45277,45516,17237,18894,28313,14622,44878,44836,6862,5410,18981,44851,44845,44711,44870,17981,30963,18185,17335,16935,17492,17904,18042,17756,44873,44671,32454,18652,13,19078,44689,44868,18996,45567,45043,17657,44687,45421,4765,13922,31354,18427,17527,45515)
Unknown column 'np.person' in 'where clause'