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 (6875,44768,45515,44884,5993,44851,44739,18172,18894,44873,44875,45180,17756,16885,13,44685,19078,18719,17092,44849,44856,44674,44845,37267,44835,45042,4765,18237,28530,36472,17278,44764,18996,17839,44848,18688,18981,45567,3,17114,10402,17835,44868,17904,45277,44762,45043,14622,45262,44765,30986,45421,13425,18572,16935,44669,44767,45346,44640,18900,17492,24438,18185,34194,18652,44745,44865,17848,4686,17755)
Unknown column 'np.person' in 'where clause'