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 (44855,44856,44745,44767,18652,17009,34194,8753,18794,28530,17601,44873,18172,18572,44762,17755,44861,17756,6862,3,28313,44870,37057,39676,45051,3883,17527,44768,44851,45518,44866,17848,45072,13,17278,44863,17835,18981,17904,13922,45262,5259,24412,19078,45515,44835,30963,30986,44775,44689,19057,45043,44531,5388,44766,18648,18719,44687,44853,22509,24411,17335,18185,44854,44764,44858,45277,18996,17237,18446)
Unknown column 'np.person' in 'where clause'