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 (44863,24411,45561,24412,13988,4686,44775,45277,18172,4765,18430,44765,44711,18996,32454,45072,44873,18353,44835,18446,17114,44837,18688,10402,17237,45262,44671,18794,19057,24438,44851,44689,44762,45180,17657,18719,6609,17703,45516,5259,18900,44739,44849,6862,44766,18652,28530,9341,45177,45346,44894,13922,44856,17527,43800,18650,45042,13425,45515,3883,44764,44884,17009,44855,17278,36472,44866,45229,17335,44640)
Unknown column 'np.person' in 'where clause'