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 (44848,45043,44849,44775,44858,44671,3,18185,44739,44531,44845,18652,45561,45180,17556,18042,6875,17703,13922,17981,6862,17835,45518,4765,44870,18900,44765,45051,45516,44669,18427,44711,17278,44854,19078,17755,13425,30986,44861,10402,17092,44856,44867,44863,6782,17492,18353,30963,44855,18301,45517,31354,44674,9341,18650,44894,5410,13988,17848,5388,44767,44764,24441,17009,45567,45042,44836,45262,24411,18981)
Unknown column 'np.person' in 'where clause'