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 (37267,17839,45567,14622,32454,44845,6875,45229,6782,17657,44855,18353,44775,44766,17278,6862,45262,18650,44854,44868,18430,44764,17492,45177,17756,44685,18185,44858,6609,44853,18688,37057,16935,24441,45515,45346,17009,18996,45043,18427,44674,17755,17601,5259,44875,44765,17351,3883,18237,18648,13425,17237,44878,44836,4765,18042,17771,45421,17556,44873,18981,44669,44849,44837,10402,17527,17835,45042,44884,8753)
Unknown column 'np.person' in 'where clause'