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 (17848,6609,5259,44687,18572,44765,44851,44849,45277,24412,36472,44836,16885,3883,18279,17237,44775,44853,24438,45072,45180,14402,45346,44689,44861,44878,45517,17335,44669,44856,44764,18894,6782,3,4765,13,44866,5993,18185,44868,44869,17556,13988,18286,18446,45051,18794,17657,24411,18996,44865,44848,45286,24441,17839,45421,44685,13922,17601,18237,18648,45042,44854,30986,22509,17492,17981,37057,17114,18430)
Unknown column 'np.person' in 'where clause'