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 (44640,44856,44853,18719,44855,44711,17835,44835,45516,8753,24412,30963,10402,18446,18430,44766,22509,36472,19078,13425,18042,44837,44868,5388,18981,17703,44851,24411,17114,31354,18648,18301,44669,14402,44863,17601,17839,13922,45277,44878,44765,45042,17755,17657,44768,45286,45043,45517,45567,30135,44861,44764,44739,18286,44745,44869,17278,45421,6782,17092,44689,45051,4686,39676,17237,18353,44894,44858,44687,45518)
Unknown column 'np.person' in 'where clause'