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 (30986,44884,5388,16935,18286,44531,6875,37057,31354,18301,45043,10402,44836,44855,32454,13,16885,45229,28313,18894,17556,18430,44878,17835,44875,17527,44767,44868,44689,44869,45177,44858,17848,44739,28530,6609,9341,14402,44669,18427,19057,44711,5259,18652,24412,44768,17657,45277,44764,13988,44674,44845,44640,44849,18042,45561,45515,17981,44851,17092,44866,6782,45180,44873,17756,17492,17335,45262,18279,44837)
Unknown column 'np.person' in 'where clause'