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 (44851,44855,44873,18446,45286,4686,16885,19078,6609,19057,18900,45051,18719,44866,18237,18185,17771,18430,31354,45561,17839,44837,44685,17351,30135,44674,9341,44687,36472,45518,17835,45421,16935,45516,18648,18794,44745,18688,44849,44768,24441,5993,44775,34194,18353,4765,45180,17755,17981,8753,37267,10402,44711,30963,44854,18650,24412,45177,44861,44863,6862,17848,45346,17703,17492,17904,45229,44835,18301,13)
Unknown column 'np.person' in 'where clause'