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 (44764,45262,17904,44878,5259,9341,45277,44851,44858,45043,45567,45561,17527,30963,17657,13922,18172,3,44863,44762,13425,45180,4686,17351,18185,44894,24438,17755,44689,45229,14622,10402,44837,43800,6782,45515,45518,44868,44685,17981,30986,18650,44739,18279,45346,45177,44669,44853,17556,44854,18237,8753,16935,17756,44875,17092,44865,45072,36472,18688,45421,45516,44674,34194,18042,39676,45286,5410,17114,44870)
Unknown column 'np.person' in 'where clause'