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 (28313,13988,36472,17755,5259,18794,17556,44858,44764,17492,24411,45229,32454,5410,17009,44866,44855,17904,5993,18648,18279,17756,17092,18652,45051,31354,18688,3883,4765,17835,18286,45177,37057,37267,44531,44851,44739,6782,44845,30135,44835,34194,18185,18996,17114,19057,18430,45180,17527,13425,18894,44868,13922,45421,14402,13,14622,45518,44837,45042,44766,19078,45515,45567,16885,30986,18572,44856,4686,39676)
Unknown column 'np.person' in 'where clause'