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,24438,44861,17335,17657,6609,17492,10402,18301,17556,18894,44711,6782,44531,18279,18688,45277,44640,5388,44878,17835,44739,18648,44855,28530,43800,17601,44848,44867,44858,44765,45518,34194,45517,17278,14402,18286,45042,30963,19057,45262,4765,30135,44865,18185,44875,44836,45177,3883,17771,44764,18446,44870,45346,44671,17527,45421,17756,5993,17981,44687,45051,17009,44873,44868,37057,44845,17904,36472,44835)
Unknown column 'np.person' in 'where clause'