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 (44531,44765,18042,44775,18572,45180,18446,45072,17527,18996,17835,24412,44764,37057,17981,17601,18650,44711,13922,17755,45286,18172,44669,17657,45229,36472,30986,45561,45517,45051,6862,17009,45262,5259,13,17756,6609,18301,44866,44854,44875,44867,44865,24411,5410,14402,18894,45515,44849,18353,44685,31354,44884,28313,18981,18427,43800,13988,32454,19078,18237,44689,13425,8753,45043,4686,17492,3883,44767,44835)
Unknown column 'np.person' in 'where clause'