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 (44845,13,44867,18894,18237,5993,17657,45567,17848,28530,18279,44878,18981,24441,4686,39676,30986,18794,30135,19078,6875,17703,45051,45561,17237,17755,44674,45421,44861,18172,17492,28313,45262,37057,18900,17981,18430,3883,14622,45180,44685,45177,44711,13988,17009,45229,17839,44837,45517,17835,24412,18996,18353,44868,13922,45346,17527,6782,44855,17092,18650,44766,44765,22509,6609,44669,19057,18185,44531,44640)
Unknown column 'np.person' in 'where clause'