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 (44685,17835,44687,24412,45516,28313,44870,17601,45567,34194,44849,17527,3883,18719,18652,44858,17237,13425,6782,18301,45515,44861,45229,18172,44845,18353,45421,30986,17114,18996,44531,45517,18894,24438,44711,44855,32454,18237,44867,22509,45561,44866,14622,44640,18650,14402,44848,44851,45043,18185,45262,17092,44674,44873,6609,30135,19078,13,44762,44766,44739,18648,6862,45346,5388,44671,45051,44868,44894,17009)
Unknown column 'np.person' in 'where clause'