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 (18981,44873,22509,8753,44867,14402,17756,19057,18185,44775,44869,45286,18301,44875,44858,10402,17771,39676,5410,44687,44640,17092,44849,17981,45518,13425,18427,44671,18279,24412,37267,16935,43800,18430,17278,13922,18572,30135,6782,45229,17848,18719,44765,45177,44531,18172,24438,45516,32454,44762,44674,17755,45043,44870,17835,24411,37057,44848,28313,44868,5993,44878,30963,4686,3883,17556,45421,17657,44835,44845)
Unknown column 'np.person' in 'where clause'