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 (28313,44765,17755,18572,43800,44745,17835,13,44775,18286,44884,17237,17601,17703,44854,30135,4765,45421,17839,45043,17092,45229,44856,44674,44894,5259,9341,44835,37057,16935,17114,32454,8753,44764,44863,44861,45277,6782,28530,44671,14402,13922,44711,30986,17848,44836,6862,36472,31354,16885,45346,44865,45517,45042,44873,18650,18688,18427,44853,45561,17009,17351,3883,18430,17756,45180,18996,45518,44869,44858)
Unknown column 'np.person' in 'where clause'