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 (16935,6782,8753,44851,13988,17009,4765,18353,6875,44835,30135,17981,44765,45042,17092,37267,45561,45421,4686,44674,18719,44687,45043,17657,17703,44671,45051,32454,44762,44689,45346,17492,18650,44745,44855,17351,44685,44767,13,30986,45567,16885,44866,44848,28530,30963,24441,44858,18430,44853,44849,44875,3,44884,18301,18688,44766,36472,18427,5410,44845,17839,44531,44775,39676,13922,17904,6609,18042,44768)
Unknown column 'np.person' in 'where clause'