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 (17556,17771,45561,17335,44858,24438,44866,45042,30963,39676,45516,44745,32454,17492,44837,5410,18652,17756,18572,17848,17755,18648,18650,44875,17527,18794,44762,44764,13,17839,17237,45277,44531,18042,44884,44894,18894,44687,18900,18996,14622,18286,44766,44835,37267,28313,45346,44848,45286,18427,45180,44851,13922,6782,44765,30986,44853,44640,44836,44873,44768,44863,17981,18446,19078,18237,44869,17092,44845,44685)
Unknown column 'np.person' in 'where clause'