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 (9341,44765,17556,45421,24438,4686,17335,17703,18900,44764,17848,18981,44836,45262,18172,17009,45518,30963,44884,18996,17657,13425,45043,18185,13922,45516,32454,44745,17278,17351,37267,18430,5993,16935,18652,44867,18427,44739,22509,45561,6862,44775,24412,17114,45177,17601,45286,45277,17092,28313,13988,44894,44837,44878,17839,44873,44640,17771,45229,8753,5388,30986,37057,18353,13,24441,44671,44674,4765,39676)
Unknown column 'np.person' in 'where clause'