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 (18981,24441,4686,17756,18286,44855,30135,44835,10402,37267,44674,17556,45072,17839,22509,16935,45346,44640,18185,45516,44873,44853,44863,45277,44764,44856,19078,17092,44848,17527,44531,45517,44837,44765,44868,6782,32454,18446,45286,13,17703,44739,44768,44858,45515,39676,45262,6875,44894,44669,24438,17335,17492,18572,44767,45229,18894,18042,44875,18427,31354,44711,18650,18648,16885,30963,18652,17771,17601,5410)
Unknown column 'np.person' in 'where clause'