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 (39676,44867,5410,22509,44873,44762,4686,17703,45042,44685,30986,18794,30135,24411,17981,45043,13922,45286,44837,44845,45517,45421,18688,17527,17839,44875,18172,44865,45516,17335,18900,6862,44775,6875,18353,44765,44855,45072,44894,44870,19057,17556,10402,14402,44711,17835,18652,36472,14622,18279,45180,5259,44861,43800,45262,34194,17278,45515,17092,44854,18648,17904,32454,17009,44868,28530,44848,45229,18286,3883)
Unknown column 'np.person' in 'where clause'