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 (45043,44669,18353,44851,9341,44878,31354,44762,44861,19078,44848,24438,28530,45042,45051,5410,13,6782,44674,30135,30963,17981,45262,17556,24412,43800,36472,44858,44870,32454,18996,44863,30986,14402,17527,44531,5259,44765,44739,44640,45517,17351,6862,17835,44868,6875,17848,18286,18172,37267,18794,3883,44869,18572,39676,17839,44835,18648,18279,18185,34194,44866,45567,13425,44775,44767,44687,6609,28313,17009)
Unknown column 'np.person' in 'where clause'