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 (8753,44851,18900,17756,45517,17114,14622,34194,17556,17092,45229,17335,44766,17278,6862,17237,44836,44745,44884,4765,18688,45051,16885,18353,45346,44866,22509,28530,44762,18301,43800,44775,45177,17601,44856,18279,45567,44854,4686,45286,17981,18430,44853,16935,18237,37267,44863,44869,17848,44767,44687,44711,44870,5259,44837,18981,14402,18185,45262,10402,30986,18794,17492,44865,17839,32454,6609,44849,44739,18042)
Unknown column 'np.person' in 'where clause'