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 (44689,17351,18172,17527,5410,44851,18652,45042,44849,18301,45567,44863,44856,44837,45177,6862,17601,18996,17839,37267,17556,30986,45518,3,18353,44762,44767,19078,4765,13922,3883,44685,44861,17092,44866,44687,45043,44765,17904,39676,45072,18650,5388,22509,45346,18688,13,44867,18279,13988,17981,45515,44854,4686,17114,44531,30963,36472,34194,44766,18719,18900,17848,44768,37057,44775,17278,45516,18427,44640)
Unknown column 'np.person' in 'where clause'