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 (4686,36472,45042,8753,43800,44894,45567,17981,45043,17839,44531,44766,16935,18900,44853,13,22509,18353,18279,44845,44866,44765,18981,45561,17556,45286,44671,24441,19057,44764,31354,28530,24438,45277,18172,5993,17601,45346,13425,34194,17527,45051,17771,6609,6862,44861,28313,44836,45516,44687,44851,18301,5410,44865,13988,45177,32454,17237,17335,44858,44884,5259,10402,44674,44775,45515,5388,18286,44669,18446)
Unknown column 'np.person' in 'where clause'