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 (44848,44674,18688,44873,45346,14622,44689,6875,44866,18794,17657,24441,17351,39676,6782,44875,45042,18427,45072,45180,30135,44687,17756,32454,4686,17835,17527,28313,3,18279,13425,18301,30986,6862,44870,18172,18185,44745,45262,45277,44766,17771,44765,17114,44853,44669,44845,24438,44854,18981,45517,44865,45567,17556,17848,4765,18572,44851,18894,5388,45043,24411,17492,44868,44878,36472,44849,44739,44768,16935)
Unknown column 'np.person' in 'where clause'