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 (31354,45518,17756,44671,44848,18981,44669,45561,18900,44878,18650,17556,45516,44640,24411,44835,18301,17092,17771,45567,19057,44775,44851,39676,18286,36472,17009,44853,18688,13988,44873,18794,14622,18996,44849,44855,45180,13922,6875,43800,6782,45043,17835,22509,44766,4765,44767,24438,17755,45346,24412,44856,17848,17237,45277,4686,10402,45286,45051,45421,3,13425,45517,44884,44745,44875,34194,5388,44711,44764)
Unknown column 'np.person' in 'where clause'