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 (17237,44765,44866,18996,18185,18572,6875,16935,44851,19057,4686,44865,14402,44854,13988,6609,45567,5410,44671,19078,18446,24438,17755,44849,17703,30963,17009,17601,24412,44861,44870,45277,44775,45051,45229,44739,44853,14622,32454,44878,44894,44687,44858,18650,17756,44863,45421,45262,44674,17335,44856,13425,44764,18430,18237,39676,18719,31354,16885,44767,18900,18794,44745,45346,44669,17839,17904,44837,24441,17835)
Unknown column 'np.person' in 'where clause'