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 (45518,45561,28313,18650,44835,17601,17703,30135,44863,44640,6782,13988,6609,5259,45516,6875,6862,44848,14402,44870,32454,4765,44739,4686,44875,17771,14622,43800,17492,8753,44767,17835,45042,36472,18996,18427,44867,18286,18301,13,45072,45346,45262,17981,3883,44853,45177,5993,45051,44762,44894,5410,17278,45515,44764,18172,44869,37267,37057,17237,44851,44878,18042,17114,30963,17848,44669,45517,17335,44865)
Unknown column 'np.person' in 'where clause'