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 (17556,44856,44875,44739,45042,44866,17839,18286,44766,17335,37057,18172,18572,5993,13425,45262,45515,44640,3883,14622,45567,31354,18652,17904,45043,45072,18301,44837,18996,17092,30963,24438,17703,18650,13988,24441,45346,18894,17771,44689,19078,45561,45421,44870,30986,44851,17657,32454,44768,6609,5388,44845,44858,44765,45229,44711,14402,6862,18981,45518,44869,8753,4765,39676,17756,28313,44849,18353,18794,18719)
Unknown column 'np.person' in 'where clause'