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 (44853,17755,17756,44851,18237,18301,17601,44762,36472,45043,18688,4686,37057,17114,18794,37267,45346,45042,18719,45561,45180,17848,32454,6862,18286,19078,17556,18430,17981,14402,17527,44685,18172,44894,24412,44866,5993,17335,16885,18981,6782,44848,13,13922,18042,17904,6609,22509,45177,24441,9341,18446,44878,17835,17703,44856,30135,45286,5259,45051,44867,17351,18652,5388,19057,44865,44837,44775,13425,44873)
Unknown column 'np.person' in 'where clause'