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 (24438,36472,18427,10402,44866,44745,44775,44851,39676,45072,4765,30986,17237,18353,6862,44845,44870,45042,30135,17835,44853,17492,14402,17703,44640,44868,18648,13,18981,45421,37057,44674,44767,44858,28530,18652,8753,24412,45346,17278,45518,44867,44856,17092,18286,18172,44711,45515,6782,45051,19078,24441,3883,18446,44766,44689,17009,44884,18719,6609,18237,13922,18301,44739,17601,44854,44836,17335,44894,44848)
Unknown column 'np.person' in 'where clause'