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 (17981,5410,17771,16935,45042,6609,17601,45229,44674,19057,44853,19078,24441,17237,28313,18042,45177,17848,5993,18652,13425,45286,10402,44894,17114,44765,6862,45567,45051,44768,44875,24412,3,3883,6875,17492,44836,44873,44858,44835,44531,44851,45517,13922,44837,17351,18301,43800,37057,44869,45043,18794,5388,6782,24438,45561,44865,45515,30963,44766,30986,44671,44689,18572,44870,18650,18894,32454,17756,44762)
Unknown column 'np.person' in 'where clause'