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 (18301,18427,44531,19057,5993,13425,17601,45042,45516,45229,17335,17771,44711,39676,31354,18894,18996,44870,24412,44775,17351,13988,45286,37267,18900,18572,44687,45043,28530,18430,44745,6609,28313,17556,44851,16935,34194,44836,45517,13922,17981,44768,44873,18279,6862,5410,44674,32454,9341,45262,44863,44849,44865,24441,44884,44671,18286,44856,44867,17703,37057,17114,45515,44837,4686,17835,18042,22509,45051,44845)
Unknown column 'np.person' in 'where clause'