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 (45042,17492,18719,44674,5410,17703,30986,44845,45516,45277,18650,13988,45229,18427,4765,5993,6862,44894,44848,18286,45518,45286,44867,44866,5259,17237,19057,44768,17092,6609,45043,9341,18794,18353,18430,44854,44669,18237,18648,17756,44868,6782,4686,44764,28530,43800,18185,44884,18900,44767,17657,17755,17835,28313,13922,44671,31354,5388,44875,44873,17114,24412,17601,32454,45561,17848,44851,45515,16935,45421)
Unknown column 'np.person' in 'where clause'