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 (17703,44711,9341,44868,17335,18572,18353,18301,45421,37057,44869,45567,17092,44851,18430,32454,18427,44873,18185,28313,8753,16935,17009,18981,44531,44765,44685,44855,18652,18900,18237,18042,17278,44878,10402,45043,24441,18794,17237,17756,5259,44861,45262,44669,44858,6862,3883,44884,44671,17351,44867,17556,44766,30986,17835,36472,45346,44762,44845,17771,3,13,44689,44856,17492,18650,44854,45072,24412,14402)
Unknown column 'np.person' in 'where clause'