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 (5410,18981,44884,44765,18301,18650,17237,44866,44768,4765,18279,17848,44861,17009,44856,36472,44640,45518,10402,17835,44767,18286,44858,39676,4686,45277,45051,44878,9341,44867,44865,30986,17657,24412,17335,17556,45515,17601,44837,45262,18719,28313,45177,18900,43800,44854,5259,44669,5993,14402,16885,44766,17981,44531,24441,44689,37057,13,17771,18894,30135,44739,24411,14622,8753,17527,34194,45043,6782,17351)
Unknown column 'np.person' in 'where clause'