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 (45043,44687,19078,9341,6875,44855,6782,4765,44531,44875,45346,18900,31354,18648,18794,17351,44849,44894,5259,32454,17492,44869,44764,44745,18301,5410,10402,30135,45072,44674,18427,45567,44856,18996,18650,44851,44854,17527,44866,45262,28530,18172,44669,18430,14402,45421,28313,45277,6862,17771,17278,17009,44739,44685,44853,17839,17756,5388,13,17981,18353,44775,45518,17755,44845,45229,44858,36472,44878,18279)
Unknown column 'np.person' in 'where clause'