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 (17981,44875,44669,44531,45346,5410,44671,30986,17351,6875,17114,44762,44837,18719,6609,18042,44865,6862,13922,44884,44689,17335,17839,45072,45421,45561,24412,34194,44764,17904,17756,4686,44836,17092,22509,17237,44869,8753,45177,24438,44854,28313,44858,3,17556,44674,44775,17771,45262,18427,44711,18652,44766,44861,18650,17009,45286,17703,17835,13425,14622,18279,44845,30963,44856,5259,24411,18981,17527,4765)
Unknown column 'np.person' in 'where clause'