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 (17009,44869,18185,17114,44775,4686,17556,30963,9341,17237,45567,6875,19057,18430,17703,44768,45561,13922,31354,17278,44894,13,18446,18794,44766,44765,24438,18894,5259,17771,18981,17492,45262,28313,18996,39676,44745,44861,44762,13425,18427,22509,18652,24412,5410,44884,18650,16885,44851,17335,44873,44640,17527,17981,44837,44878,18237,30135,45043,18648,17092,3883,45277,14622,45517,17904,44863,45042,45229,36472)
Unknown column 'np.person' in 'where clause'