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 (17755,45515,44835,10402,44853,30135,44674,24412,18042,18650,32454,45043,17601,44856,17556,44884,3883,44868,18279,17981,17492,18353,8753,17904,16935,45516,18894,37267,44687,44775,18648,45286,19078,18719,31354,17092,16885,3,18981,18688,44849,24438,44767,17756,24441,28313,44711,14402,22509,44671,45051,44836,44865,45518,13,45421,18237,45229,4686,5259,44764,17703,18185,17835,19057,44855,17335,36472,5410,45517)
Unknown column 'np.person' in 'where clause'