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,44894,17556,6875,45286,31354,44855,44867,44837,44884,45517,18353,45177,4686,44835,44849,44854,24438,30963,44873,18794,19057,44853,44861,17237,8753,6609,44878,37057,17351,45262,14622,44745,18427,32454,44856,18286,36472,45042,44685,4765,18981,28313,5993,14402,6782,18572,18652,30135,39676,13988,44875,44858,13425,45561,45421,44868,44762,44768,9341,45180,24441,18279,44870,17703,13,44687,30986,45567,17114)
Unknown column 'np.person' in 'where clause'