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 (45286,44711,36472,43800,45567,31354,44854,18427,17657,45517,44873,45561,32454,6782,44767,44837,17278,45072,44845,18430,6862,4765,44870,44875,37267,13425,5388,45518,18794,16885,45180,17556,30963,44671,17981,44768,24438,6609,44674,44765,17527,45262,13,45043,44848,19057,18042,45277,17009,18900,45051,45229,9341,17601,37057,18648,17237,17351,18237,45346,17756,18172,44640,44851,44856,18688,22509,44865,5993,18650)
Unknown column 'np.person' in 'where clause'