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 (17556,45072,34194,14622,45567,44837,13922,44768,43800,13988,17335,17835,18900,18719,5410,45515,18430,6609,44866,44739,31354,44894,44856,30986,18981,45229,44869,44767,44873,39676,44674,24438,17527,45042,37057,45180,44854,5259,44848,44836,30963,44878,17492,44851,18996,44669,6782,44687,17703,17755,44867,16885,44671,3883,18688,19078,45516,18652,10402,18172,44868,18042,19057,18794,44855,16935,17657,4686,44884,17981)
Unknown column 'np.person' in 'where clause'