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 (18172,17278,24438,44866,45518,17848,14622,17335,44835,44867,10402,44669,17981,44858,44766,18650,6862,44836,6609,5410,44884,44855,18353,44865,3883,45262,44685,44849,5388,30963,19078,44875,31354,44768,16885,45072,45051,45516,17755,44762,18430,13425,44868,44854,17092,18894,44837,14402,45229,18981,18237,18185,30135,44869,18652,44894,5993,43800,17556,44870,45286,18286,44873,44671,18648,44856,17904,24411,44739,30986)
Unknown column 'np.person' in 'where clause'