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 (17601,17114,44836,5410,24441,4686,14622,18650,17009,17556,24438,45567,44884,44835,17771,16935,44849,3883,44875,17527,8753,44845,18042,45051,44858,18353,44878,45346,45043,45229,44687,37267,32454,17756,44854,18648,17848,24411,44873,18301,45180,6609,30986,18279,6862,18894,44894,19078,43800,44775,44767,17237,44867,17981,30963,28530,3,18430,45286,18572,44531,37057,36472,45516,44745,18446,44869,5993,44870,17904)
Unknown column 'np.person' in 'where clause'