Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (17335,44858,4686,44745,9341,6862,45072,45051,24438,45346,45421,17527,30135,44845,18185,45518,6782,31354,30963,44835,24412,44837,5259,45229,34194,13425,18996,17351,45180,44854,14622,44685,18900,44867,18446,44762,44853,18981,18894,17904,19078,17092,44855,44739,17756,45043,18650,44869,17556,18237,18794,17237,17657,45515,17755,10402,44711,17278,8753,45561,18652,6875,18688,45567,44531,44689,18648,16885,17114,18279)
Unknown column 'np.person' in 'where clause'