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 (18794,24441,13922,6782,45180,17351,18279,44845,44848,43800,36472,3,44835,18042,18996,18430,45517,34194,44855,39676,14402,17904,18719,30986,44775,17981,45277,45177,18353,17601,44878,44869,44873,45043,45515,44866,16935,44685,44884,17657,44868,44858,44851,4686,4765,17703,17009,19057,22509,18981,45072,6862,8753,32454,44765,18446,44764,44867,17092,10402,14622,28313,45262,44640,18900,28530,5259,6875,44836,44875)
Unknown column 'np.person' in 'where clause'