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 (44531,17981,24412,45515,45229,44775,6609,17237,6782,14402,44837,45567,44836,18185,18688,44845,17601,18648,18572,45517,17335,45518,17835,44851,18430,45072,37057,18996,16885,44765,45346,43800,18042,19057,44894,17278,45043,45177,44858,28313,44868,28530,18900,3,44711,17756,45421,44739,44669,13,45286,44674,24441,44764,19078,17092,45262,17657,8753,45042,44767,44671,17527,18446,30135,44835,17771,24411,10402,39676)
Unknown column 'np.person' in 'where clause'