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 (45515,17601,44869,37267,13922,18301,45051,30986,17527,44766,44894,19078,17351,18688,22509,18353,18981,3,44711,44669,13988,44855,44861,32454,45262,17237,44865,17335,4686,45421,44739,5410,17278,6862,44768,17657,44745,17839,6609,18042,44762,9341,44884,18894,18185,17771,45277,44856,17756,18427,18719,16935,18996,18279,14622,28313,44867,44674,44671,17904,24412,44853,44868,6782,24438,45346,14402,44687,5259,6875)
Unknown column 'np.person' in 'where clause'