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 (18301,44867,9341,13,45421,17278,28530,44884,3883,45346,45515,17703,3,44674,10402,18042,6862,44669,44845,44858,44875,44856,44851,5410,18688,45072,44768,45051,18446,31354,17601,45229,44849,18427,16935,18900,44689,24438,44531,18981,45262,17114,45042,44878,44671,14402,18185,44866,44868,19078,16885,44861,44837,17092,39676,17556,44855,44869,13988,34194,17981,18894,19057,18650,18794,17527,18572,45286,14622,30986)
Unknown column 'np.person' in 'where clause'