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 (44837,6609,44671,45051,10402,44845,31354,18652,24411,3883,13,18894,39676,44669,17703,18981,18688,44858,44865,5259,43800,9341,44687,44762,17839,17278,18650,45277,17114,17755,17756,16885,17237,44685,19078,44855,3,44875,17771,6782,18353,45072,18185,17848,44866,6862,45043,18900,44767,44854,44878,18286,17904,45229,44873,28313,44768,5993,18446,45567,17351,44775,18430,44868,45516,45518,17981,36472,44711,45262)
Unknown column 'np.person' in 'where clause'