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 (6875,44764,17771,18427,18185,44858,44674,44894,44855,8753,45180,34194,6609,45518,6862,18237,44870,44851,44866,19078,44837,18446,39676,44711,45277,44854,45421,44671,44687,44531,37057,45042,30963,24412,10402,44836,17009,30135,5993,13425,17703,18648,4765,45177,24411,43800,45051,44835,44853,17657,28313,45567,32454,45043,44873,18279,44856,17835,36472,4686,44865,18572,17848,44640,44867,18650,16935,18301,44869,44745)
Unknown column 'np.person' in 'where clause'