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 (45072,14402,28313,44640,45043,18688,3883,13425,5259,45346,13,17657,6875,44845,13988,45180,31354,44868,18652,6862,44866,6782,17835,44768,24411,17278,17092,16885,16935,45051,45286,17755,45177,18430,45262,32454,18650,18648,45518,44873,37267,17492,22509,18279,34194,45567,14622,17351,44863,44775,44870,36472,45229,18900,17981,39676,17556,44856,18446,44671,4686,17756,45042,18981,3,44837,17839,45561,18572,44875)
Unknown column 'np.person' in 'where clause'