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 (28530,24412,17904,18794,24441,44687,36472,44869,18900,44671,17981,18185,5993,44855,4765,44762,19078,44875,17009,18427,45421,18042,18650,14402,30986,44674,17335,18572,45567,44853,13,17839,44765,17755,44766,44878,44669,8753,44894,44867,44870,17601,44863,6782,28313,44764,45286,44884,45043,45515,18237,45517,5388,37267,14622,30963,45072,18996,44865,16885,45042,18172,18286,44745,30135,31354,45518,45346,44851,18719)
Unknown column 'np.person' in 'where clause'