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 (44768,4765,17335,44687,18172,18279,24411,18900,44861,18446,18430,17771,5388,45516,44856,44689,10402,44873,45421,44766,3,17278,45518,3883,31354,44764,17556,30986,44674,18719,24412,16935,45262,18981,45346,30963,44858,17981,45180,44867,8753,36472,17904,37057,45042,17114,44835,44855,45072,44870,28313,18894,44531,5259,17835,6782,14402,44669,45277,44851,6862,18996,44762,44878,5993,44849,44845,18572,39676,18794)
Unknown column 'np.person' in 'where clause'