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 (18981,18042,45229,18279,44687,22509,13922,17527,17114,44775,44866,18185,18652,44739,44766,6875,45515,18996,44835,18719,39676,44640,45421,44853,34194,44767,24412,16885,45286,44768,5410,17848,4765,18237,44845,37057,24411,19078,44669,6782,30963,44856,4686,44855,10402,24441,37267,18688,24438,45072,45043,17703,18894,17835,17756,45277,44867,18430,13425,5993,45180,44868,17092,18301,17839,44764,17904,45262,44873,17237)
Unknown column 'np.person' in 'where clause'