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 (44848,18301,37057,6862,18446,4686,44878,45286,44687,44764,44873,44674,17556,44856,45180,18427,45346,45042,45229,44854,44745,13,10402,3,44775,18981,45043,18688,17335,44766,31354,18172,4765,18279,17114,44836,18572,18996,30135,45518,30986,18286,19057,44853,44894,14402,17981,44861,18430,17848,18794,17092,44867,30963,18900,44739,44865,44689,6609,45515,44711,44875,24412,14622,32454,44765,45516,45072,44849,18652)
Unknown column 'np.person' in 'where clause'