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 (44858,45177,18279,44762,45518,44531,24412,18237,44745,17755,18572,44764,44855,44878,17904,44853,18650,44875,17771,14622,45421,10402,17601,44845,30135,18719,45286,18042,17835,17278,37267,4686,18648,44867,43800,44854,44674,45072,19078,6609,24411,44866,39676,17756,44739,44767,17237,45515,13425,44869,32454,45180,18353,17351,44765,9341,13922,45516,17114,24441,18286,16885,44868,45277,28530,44851,44689,13,18185,44836)
Unknown column 'np.person' in 'where clause'