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 (22509,44531,44868,45042,16885,44858,45518,19078,14402,13,17771,44866,17981,18648,44745,44875,44687,17904,30135,45051,37267,45286,34194,13425,18286,44878,44884,45567,18719,18652,4765,17835,44851,45561,31354,17755,18688,44640,5388,6862,17009,45517,45262,18185,17839,17527,18981,18172,45421,44762,30986,13988,43800,44863,19057,17657,39676,4686,44671,13922,44865,44870,44856,45515,44689,18900,3,17756,44861,44845)
Unknown column 'np.person' in 'where clause'