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 (45277,45421,18185,44851,44849,18996,17009,17114,45262,14622,18172,24411,17771,17527,17904,18042,18353,17703,44762,44685,45177,4686,44775,5993,17092,17335,17835,44854,13922,37267,45518,18794,44766,6609,44739,32454,13,44861,28530,10402,44669,44867,44868,9341,44848,18648,44689,18894,44711,18981,44870,37057,45229,17237,6875,44863,45517,44873,45515,24438,28313,44835,30135,16885,3,16935,13425,36472,45561,31354)
Unknown column 'np.person' in 'where clause'