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 (18648,17092,44866,44685,44848,44851,44836,18981,5993,44878,45515,28530,17703,18286,18719,44865,34194,32454,17278,45286,4765,44873,17981,44863,18301,18894,36472,18427,16885,18996,44762,18794,44884,44854,45262,17556,45043,45516,44689,9341,45567,6862,44835,18650,45561,44669,17114,24441,44775,5388,3883,5259,45277,44711,17904,30135,19057,45051,17237,28313,17848,6609,45072,17835,44868,18279,44853,44531,45229,44764)
Unknown column 'np.person' in 'where clause'