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 (45229,45262,44861,44858,8753,5993,18427,3883,45042,17527,18572,3,44865,17335,45051,44762,44711,45277,44873,18446,45515,44669,14622,44835,45517,44775,17981,44853,18652,4686,28530,17601,45043,45286,24438,44870,17904,6862,17556,44855,18286,44866,4765,19078,13425,17839,24441,44765,44836,44856,44869,6875,17237,44848,44845,43800,18185,44764,44685,18650,44689,44875,37057,17351,10402,45516,18237,44674,17009,17092)
Unknown column 'np.person' in 'where clause'