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 (44766,45346,17771,44836,6875,18237,24412,45229,44689,18648,44640,18650,44531,24438,17657,17278,18652,6609,44745,37267,45177,19078,18172,18286,30135,17835,44884,5259,44849,10402,44764,44739,44762,30963,18430,44878,28530,18446,44863,44711,17601,17527,34194,17351,5410,44875,45042,45567,44765,17904,17755,44894,16935,44873,9341,44865,14622,44687,8753,18688,19057,6782,18981,45286,17703,39676,45043,44767,4765,24411)
Unknown column 'np.person' in 'where clause'