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 (44745,45262,44855,17835,45346,45515,44845,4765,44867,39676,18185,44858,45042,44687,31354,3,30963,3883,17657,30986,6862,45229,17981,17755,24438,17756,17904,44768,37057,44851,18652,45043,44870,4686,22509,44766,44671,45516,9341,44767,44762,44869,44837,18648,18981,18286,44856,17092,17556,43800,45517,45177,44765,18279,6875,45180,13922,17848,44640,44884,45051,18237,5388,45567,13,44848,18900,44878,45286,18042)
Unknown column 'np.person' in 'where clause'