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 (17839,6875,44837,16885,17278,18794,18446,30963,30986,45515,37057,44669,18279,44869,45051,44836,18185,17601,6609,18981,13,44851,18237,44865,17009,17657,45421,44845,5993,39676,17755,17114,45286,44853,43800,17092,18648,36472,44866,44762,44861,44875,4686,44767,45042,44764,32454,37267,44848,5410,44711,18430,44873,17527,30135,44855,18572,18996,45229,45262,13988,45177,44894,6862,3,17756,17335,18353,13922,13425)
Unknown column 'np.person' in 'where clause'