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 (45177,44855,44764,18794,43800,30963,17278,9341,18301,44739,44853,44836,5993,18650,13922,44835,44845,6862,44849,6609,18719,45561,17839,44884,45516,17835,18996,10402,44851,17114,18430,30986,39676,36472,13,18427,6875,45346,45043,19078,44775,18652,18353,45180,17848,44689,18279,44531,32454,37267,18648,44875,19057,45277,45286,44869,44762,17755,44870,5388,45072,17351,17527,44674,44867,4765,30135,17756,44768,17556)
Unknown column 'np.person' in 'where clause'