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 (17756,44767,45286,18572,44685,4686,45072,44768,24441,13922,18894,30135,45567,18042,19078,17835,18185,44689,45229,37057,44711,44762,17601,18648,18286,18446,44870,44858,10402,18900,43800,24438,5410,45277,17527,44836,45346,17114,44849,44745,18279,18981,17092,6609,19057,16885,44837,44866,4765,36472,17556,45517,44856,44853,44867,44671,17904,44766,39676,6862,44687,44851,45516,45421,44531,44873,17237,18996,45561,37267)
Unknown column 'np.person' in 'where clause'