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 (44767,13988,44689,6862,17492,13425,31354,17351,44873,45180,45346,17657,6609,44845,44884,18996,18900,18794,28530,44854,44867,44849,13,45277,17601,5410,24438,3883,17848,18185,39676,18981,44640,17839,18648,18279,6875,4765,44765,44853,36472,19078,24411,17703,44775,44669,18688,18446,44866,44837,8753,28313,18301,32454,18894,44865,44869,14622,34194,16885,44894,45567,18237,45516,44863,18042,17755,45286,5259,45262)
Unknown column 'np.person' in 'where clause'