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 (17114,32454,45177,31354,44671,24438,18172,18353,34194,3,17657,44858,44685,30986,18286,14402,18794,16935,3883,18648,17351,18719,44767,10402,45561,19078,44775,13988,44854,44855,24441,17492,44878,44863,44853,45346,45042,17771,17981,45072,37057,18427,17756,45051,6875,44669,18650,44764,18996,45516,44745,44884,5993,44837,44873,45229,17009,44849,19057,17703,44711,44531,28530,13425,17839,24411,18301,44768,18237,45286)
Unknown column 'np.person' in 'where clause'