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 (14622,44866,24438,44775,31354,44854,44767,17848,44848,10402,5410,45042,4686,44869,6862,45561,44863,17839,44849,45515,17278,34194,18353,5993,44674,18652,45177,37267,3883,5259,17237,18900,44739,44685,45262,18996,44768,45072,44745,17601,8753,44867,44671,18427,44837,30986,18650,18172,17556,32454,18286,17114,44870,44845,44894,44868,18719,19078,44856,44851,18237,24411,44689,44531,9341,17981,45346,28313,13922,13)
Unknown column 'np.person' in 'where clause'