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 (44764,18894,3,44873,17335,44674,19078,24412,17904,18650,6782,30135,24441,3883,45043,13988,17657,44531,18185,44711,17114,24438,6609,45518,17092,44640,45421,44884,44745,17756,45051,44865,4765,17009,5259,17848,18446,45072,45561,32454,44851,14622,45042,17556,44868,13,44853,44894,13425,30986,17703,10402,44878,18286,18237,44836,18572,44845,45346,44870,28530,45229,45277,16935,18688,44856,18042,30963,44768,18996)
Unknown column 'np.person' in 'where clause'