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 (45177,18286,18172,44739,45229,44687,45346,17237,17492,45516,3883,45421,18430,44870,44836,13988,45180,44674,44762,44858,44835,18652,18996,17601,44764,16935,45277,18279,44866,44855,43800,5410,31354,44873,18650,44640,18688,44849,44837,18427,44867,44671,6782,18237,37267,44884,18981,19057,44878,13425,45051,28530,18900,44854,17657,44765,17904,44863,44865,18794,17527,17703,44768,24438,44711,18894,17835,45262,17092,17114)
Unknown column 'np.person' in 'where clause'