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 (8753,18185,44837,44849,4765,18981,3883,10402,44869,31354,45043,45277,17009,44765,44870,44863,44766,36472,17527,6782,44739,45567,44854,30963,17835,30986,24438,45262,44531,24441,45177,44671,44836,44861,28530,44674,17755,44884,17114,18427,18652,44858,18996,18430,17237,18688,5993,44669,3,45229,45346,37267,13425,44853,18353,18301,44762,14402,17703,17278,44745,17839,44866,45561,45515,44764,19057,18648,18042,45180)
Unknown column 'np.person' in 'where clause'