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 (16935,18427,18572,44687,18353,13425,17848,30986,45517,18301,18446,3,17351,44873,31354,44856,44884,39676,44854,17556,45229,18719,24411,44674,34194,44837,17839,44739,18279,17904,44858,37057,17492,18688,44851,17009,18650,44845,19078,4765,6875,28313,44640,18430,44849,17835,44775,17703,6862,45177,14402,44875,44853,18981,45051,13922,45561,17771,13988,24412,43800,45043,18794,44765,45262,36472,45286,44865,17756,24441)
Unknown column 'np.person' in 'where clause'