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 (18996,44848,31354,44870,9341,18301,4686,18237,24411,44767,13,17981,32454,36472,17092,45229,10402,37267,18719,45262,18650,44867,30135,5259,17756,44861,17835,44856,17351,17237,44858,44835,17904,45515,45180,24412,14622,44765,5410,37057,28313,44866,45517,45072,44768,24438,30986,17771,44531,44837,44845,44878,18172,6609,17657,3,44884,3883,18894,18430,44875,18286,44851,44689,45567,18042,44674,18279,34194,13988)
Unknown column 'np.person' in 'where clause'