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 (17278,44855,44875,16935,45229,3,17756,44687,30963,17335,18286,13922,45072,18652,17237,44865,5388,24412,18353,6875,37057,45277,18427,18237,37267,17904,18981,9341,44775,18446,45346,45518,45262,16885,18719,44845,18650,44745,17114,44849,44856,17835,44873,18900,24411,24441,44689,36472,45516,17755,13988,17092,44674,18185,45177,44836,17351,44867,44866,45421,18172,24438,44870,13425,44531,6862,39676,18572,45515,44851)
Unknown column 'np.person' in 'where clause'