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 (44764,8753,44861,17755,13,18446,24441,44845,45262,44856,17114,44894,44767,44868,44848,18894,18900,17092,44531,45180,17703,13425,44869,24438,24412,44685,17839,45277,44863,44866,5410,17981,17904,45516,17601,31354,45042,17848,18794,3,45286,44640,6609,14402,30963,44775,6862,18237,18279,5388,45177,16935,45567,44766,45421,17657,32454,19078,13922,6782,39676,18042,6875,17237,30986,37267,5259,44762,36472,34194)
Unknown column 'np.person' in 'where clause'