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 (18446,18652,44861,18430,44873,44866,3883,14402,18185,44858,17278,45421,18894,44856,18650,24412,17771,17009,10402,44766,17601,44851,44845,18237,44875,18981,37267,19057,28313,18688,5410,45286,44868,18353,44837,44765,17527,44531,17904,18719,45042,45518,44762,44853,44878,18648,45516,45072,6862,5259,30986,37057,44775,44863,18279,44711,44674,17092,24441,45517,44835,17835,44849,28530,6782,17981,13988,44869,36472,3)
Unknown column 'np.person' in 'where clause'