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 (44768,44870,45567,44689,44849,17601,45072,18301,24441,17114,17835,18353,6875,17556,5410,18279,45229,45286,4765,45180,16885,16935,18172,22509,44851,4686,44867,17756,18648,18042,34194,18996,13922,44739,18286,6609,37267,18185,44856,44836,44669,13,18430,44854,44775,44685,44531,17278,45051,19078,44765,44873,45277,44764,18427,45042,18894,17904,44674,44845,18652,17335,45518,17703,44894,9341,31354,24411,44875,45346)
Unknown column 'np.person' in 'where clause'