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 (45177,44669,18981,45567,3,44765,6609,44866,24411,17278,39676,18996,44858,44873,30963,44768,44835,17756,17839,17657,34194,5259,30135,44775,45229,44836,5410,28313,18719,45517,31354,17703,17092,13988,36472,24412,45262,44745,18652,32454,14622,44766,24441,44531,44764,45518,18572,37057,28530,44861,44853,45286,45346,44848,44865,44878,19078,17835,18279,13425,45072,45042,45051,18900,44868,37267,44894,44837,44849,44711)
Unknown column 'np.person' in 'where clause'