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 (18719,44870,44863,18430,44866,17114,17278,44875,18427,45229,4686,18648,19078,45072,24441,44858,14402,4765,17092,44745,44861,3,44739,44848,17904,45043,45516,45177,44531,44674,37267,16885,44869,30963,18652,17848,18894,18794,30986,28530,44845,34194,44836,44762,44767,44766,17703,18900,17556,24411,18286,24412,44768,17771,45421,18996,17351,31354,45262,5993,5388,44851,45518,17527,18172,6875,44849,44894,45567,8753)
Unknown column 'np.person' in 'where clause'