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 (22509,18894,18237,18353,44873,45180,18430,44768,44894,43800,18794,45277,45072,19078,18572,44861,37057,17657,6862,44870,18996,44767,44849,44674,44671,44775,17703,3,28313,37267,17771,13988,18427,30986,18301,39676,6875,17009,18172,44745,5993,28530,24411,17492,44866,18286,18042,45561,17756,10402,44865,3883,44858,6609,17114,5410,17904,44837,18981,31354,44854,18279,44764,17981,44848,4765,18648,13425,18650,45421)
Unknown column 'np.person' in 'where clause'