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 (44878,44848,45051,4765,9341,22509,44853,17771,13425,37267,17556,45180,43800,44868,44685,18894,44855,3,44764,45277,13922,44836,5993,17839,32454,44671,45518,44531,45515,24441,45421,44856,6609,37057,18996,45517,44851,19078,18900,4686,31354,44837,6782,44762,44867,44858,17351,18719,34194,36472,45561,45567,13,18185,17335,44775,44669,17904,44766,19057,8753,18237,30986,30135,14402,44854,45516,18648,17756,18650)
Unknown column 'np.person' in 'where clause'