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 (44764,17756,17527,44865,44711,5259,44869,17771,44739,43800,44531,45229,45042,45561,44836,45567,44640,34194,18301,5388,18572,6782,45043,44853,44674,17278,44837,10402,18650,44875,18894,44669,45277,30986,44835,17335,45262,14622,13,45177,18286,14402,44765,44854,18900,45515,17092,6875,17755,18981,24412,45518,17237,44766,17492,3883,3,18353,18688,24438,17351,17556,18237,9341,32454,28313,17839,18427,36472,44867)
Unknown column 'np.person' in 'where clause'