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 (5993,44851,18719,44766,32454,45277,18981,30963,9341,44875,17657,18430,45180,44853,4686,44687,44767,24438,44858,6609,18286,17278,17527,45043,44739,18650,14402,44863,5259,13922,44845,17092,17601,44849,3883,44775,17009,3,18688,44873,44640,45286,44866,17904,45229,18237,44669,44671,44884,45346,16885,44869,17981,17756,17848,39676,10402,24441,45262,37057,44878,45567,19057,17351,18279,44854,18652,17114,17703,18900)
Unknown column 'np.person' in 'where clause'