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 (24411,18648,18652,22509,44868,19057,19078,18185,44767,24441,13425,34194,4686,44865,44762,17835,6782,44866,17755,45051,44884,17657,3,28313,16885,30986,30963,45262,45043,13988,45346,17601,44870,17009,44873,45567,18794,44739,17351,14402,17981,45561,45042,18650,18237,44851,39676,44854,44685,36472,17771,44849,44745,17237,5388,14622,45517,18279,44775,5410,44837,44531,18286,18301,18981,5259,44669,31354,44689,44765)
Unknown column 'np.person' in 'where clause'