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 (44764,45518,44767,19057,17835,3,18648,22509,18794,17009,45421,45051,44837,45567,18650,17278,17848,45515,30963,44848,44865,18900,9341,17771,3883,4765,44685,45286,18301,18996,18286,44894,37057,18719,30135,18572,44858,18981,44836,13988,44669,17904,44845,45043,19078,18688,45042,5993,44674,44768,44766,18279,44863,17092,37267,44711,45262,45346,44853,17351,28530,44869,44775,44851,28313,44531,14622,17981,44866,45177)
Unknown column 'np.person' in 'where clause'