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 (13988,44854,18688,10402,44861,30986,14402,45229,17835,44687,5259,24412,44855,24438,45346,44674,17904,17335,6862,18185,18648,17492,18894,45421,36472,18353,17092,44845,45043,18794,44858,18900,44851,28313,44689,39676,18237,30963,6609,45072,13425,24441,18652,45051,18981,5993,45262,17839,18286,45515,19057,17771,17703,44766,44853,45286,17601,45042,44767,18279,24411,44837,9341,44836,44775,17755,44863,37267,44849,44868)
Unknown column 'np.person' in 'where clause'