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 (18427,44845,18301,31354,24441,45517,45051,17848,24412,44837,44873,17114,44689,45229,22509,44836,44671,28313,45518,5410,18430,16935,13988,3883,18652,45043,44669,44866,44868,4686,16885,44767,44766,30963,17981,17527,6609,18185,5993,30135,45286,44765,13922,18894,18648,18572,5388,6862,9341,44865,17092,45072,44878,44867,18446,17335,44851,18650,45516,18981,45567,19078,44870,18172,19057,44894,45421,18286,17009,44849)
Unknown column 'np.person' in 'where clause'