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 (17703,18652,18996,44858,30986,44867,45072,17981,17278,14622,44869,13,44854,18185,17335,17114,18042,17556,18430,37267,45043,9341,18572,44674,18648,45180,36472,6862,18981,45286,44853,44767,44745,24411,24412,17835,45567,44835,44739,18237,44875,30963,17092,4686,45421,18719,44848,18894,44768,17351,39676,5410,45229,44856,19057,45051,16885,4765,30135,17904,6609,3,24441,31354,44687,44671,44836,16935,44865,5993)
Unknown column 'np.person' in 'where clause'