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 (17601,17278,18981,18237,44531,45518,18042,18650,9341,45229,18900,13,14402,44711,44685,31354,44762,18286,44766,45180,18353,45346,18572,22509,17657,19078,44775,24441,44674,44765,19057,44873,45567,30135,17981,17848,44767,28313,44851,44837,44867,18996,18446,44853,18719,24412,44764,14622,45072,17835,45262,13988,17114,17904,4765,5993,18430,17351,34194,45042,44835,44878,13922,44861,45286,18427,44855,17335,18894,32454)
Unknown column 'np.person' in 'where clause'