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 (44739,32454,44856,44765,18648,16885,17904,44745,14402,5388,45286,13922,44775,17756,45567,28530,44851,45180,18185,14622,44855,18446,39676,4765,44894,6875,30963,18688,17835,44762,17278,24411,18430,6609,18650,36472,24412,17755,45277,17981,5410,44766,18427,17703,13,4686,24438,45043,43800,18894,44867,44711,24441,45346,17556,45051,9341,44687,44875,45518,18279,37267,34194,13988,18794,45516,45561,44873,18572,44863)
Unknown column 'np.person' in 'where clause'