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 (44766,18652,18185,18894,16935,45042,45516,18981,22509,44836,45229,24438,44861,45561,17848,45567,44858,44767,44855,45277,44837,44640,5410,44745,30963,17114,19078,44870,43800,44849,17657,44884,44689,44851,18237,44878,44867,44739,24412,24441,44531,45072,18427,44856,4686,45180,8753,32454,45043,17278,45421,18719,17703,44848,31354,44764,45518,44671,17756,30135,17335,44873,28530,17981,18572,44835,18172,9341,44853,3883)
Unknown column 'np.person' in 'where clause'