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 (5410,44856,16885,45072,17009,45346,8753,18981,37057,44884,18794,17527,17703,44768,44837,44766,44764,44762,3883,44739,13425,17114,18042,45042,17556,44855,9341,19078,44848,18648,44775,18996,44867,32454,43800,17492,44687,45286,24438,18279,18446,44858,44765,6609,45229,45043,18572,17755,10402,19057,6782,22509,45516,44531,45518,44711,30963,18301,44853,17092,24411,18900,39676,45561,44863,3,44868,6862,45517,34194)
Unknown column 'np.person' in 'where clause'