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 (17278,18652,18648,16885,17335,6782,18286,24441,18688,45517,44711,44855,17114,44865,28313,44878,17981,44764,30986,17492,44775,45561,4765,31354,18894,44869,44687,4686,44767,17848,44875,44884,44669,18900,45346,44836,44856,18572,24438,44858,18237,17904,17755,39676,37057,44849,19057,45180,44866,17839,44854,44851,44861,17351,18427,43800,14402,18185,30135,18430,18172,44765,13988,19078,17237,18650,44768,6862,18719,36472)
Unknown column 'np.person' in 'where clause'