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 (14402,18042,45072,19078,44853,45567,45286,44739,44711,44836,3883,18688,18427,13988,17756,31354,17351,45229,18237,44745,17601,17527,18286,5410,18981,30986,44858,13,28313,30963,18648,44764,44848,45180,44775,44868,22509,24441,8753,44851,37267,17009,44878,44837,24411,44854,18996,39676,44767,18301,18650,5993,45421,17556,10402,17278,4765,18185,3,4686,45277,45262,45043,44865,44768,6782,17839,18572,19057,44855)
Unknown column 'np.person' in 'where clause'