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 (44851,44855,45346,18446,13922,18981,9341,8753,45177,17755,44866,6782,17904,45180,45515,44836,17839,6875,18650,18894,30986,6862,13988,17092,44768,44745,17556,45517,44689,44837,17114,17981,17848,44671,18353,31354,39676,18572,44669,17237,44765,18996,3883,17492,44858,44764,44531,44848,17351,44869,22509,18427,44884,28313,45561,17009,4765,18900,45518,19078,44875,17835,18648,17657,44674,10402,18237,44867,44856,45421)
Unknown column 'np.person' in 'where clause'