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 (18301,18650,44689,24412,44762,6609,17527,17848,44870,24441,18042,17009,44739,45051,5410,17755,13988,44848,30986,13,44835,18353,6862,45042,18572,18427,17703,44873,17237,44766,24438,14402,17771,17492,44866,44775,17114,45229,44865,31354,44858,36472,17278,18900,44767,44845,32454,44836,18648,18237,43800,17556,6875,37057,17351,44765,3883,4765,17756,18894,44867,17092,3,45043,44869,17335,44854,6782,18185,44851)
Unknown column 'np.person' in 'where clause'