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 (44739,44868,43800,13,17771,44854,17755,44849,5410,13425,44869,44689,44766,44711,44870,17335,17904,24438,37057,44873,44669,31354,17278,17601,45177,8753,18650,44858,45262,24412,44762,32454,44765,18894,18430,14402,16885,45346,6875,18353,5993,4686,17848,18237,45277,37267,44851,17839,16935,44764,30986,45042,18996,28313,45043,19078,17556,28530,44837,44674,18688,17492,6862,9341,10402,36472,44687,45515,44863,45518)
Unknown column 'np.person' in 'where clause'