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 (44767,17755,45043,45042,44856,44848,45561,44854,44853,17092,14402,44845,18572,44851,17771,5993,18237,44855,24412,18172,44875,44685,44745,44711,44775,37267,45286,45229,44878,6862,19057,13988,44894,17756,44865,5410,10402,18286,44765,9341,44835,6782,18981,18794,18688,44531,3,44764,18042,5388,17601,18279,44687,37057,17114,45072,17839,18353,24411,24441,17335,28313,17527,45277,44766,17981,45518,44863,18652,16935)
Unknown column 'np.person' in 'where clause'