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 (44837,44835,44768,44674,14622,17835,8753,44745,45262,3,44775,44689,44767,44870,18719,18185,17848,17237,34194,45072,44531,44739,45561,45043,24438,17981,18981,17114,18237,18688,30963,13425,5993,17351,44851,13988,45051,44894,45517,44640,44711,5410,44863,44884,44764,45518,24411,44669,45229,17755,18572,6875,18427,44766,44869,18279,44845,44867,17009,17839,36472,30135,44765,45180,45277,32454,17335,4765,17492,18446)
Unknown column 'np.person' in 'where clause'