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 (28313,44766,19078,43800,44870,44848,13,37267,4686,9341,45229,18286,6875,30986,16885,18353,18894,44640,32454,44865,17351,45051,18652,22509,6782,14402,17237,44739,44685,44768,17335,44863,18900,18446,3,18279,10402,45072,45346,13922,44853,30963,18650,45262,17278,44711,45042,45515,44775,17848,44765,44837,3883,44745,45177,6609,45517,39676,44855,45277,17981,18648,8753,30135,44849,17839,6862,18719,31354,44858)
Unknown column 'np.person' in 'where clause'