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 (44853,44868,43800,17601,17009,44689,6609,18353,30135,28313,3,30986,45043,44835,17703,44766,18042,31354,45421,13988,17771,44674,17755,17527,44875,44837,44836,44775,5993,13425,18996,36472,18301,14622,45567,44711,44764,5259,45177,18652,17278,45518,45042,18794,5388,32454,44671,4686,17756,14402,6862,45229,18688,44854,44768,44856,18650,6782,17904,17981,17092,18900,13,44849,17335,44640,24411,44870,45517,18648)
Unknown column 'np.person' in 'where clause'