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 (18981,18652,18894,3,44856,44853,44775,18572,18650,44768,44884,45177,13988,17657,17904,18430,45042,6609,45515,45180,18185,5259,30963,17278,18900,36472,17703,44531,4765,18279,24441,17981,44875,30135,45518,17492,44745,24412,44689,45277,45286,17114,44873,44764,44640,44849,8753,28530,31354,24438,19057,28313,44845,17771,30986,18996,3883,44851,45567,45346,17848,44858,18042,17092,44669,44837,6875,44687,32454,44869)
Unknown column 'np.person' in 'where clause'