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 (45277,44856,44674,36472,3883,43800,18648,5410,17601,44689,17771,37057,28313,17756,45567,18042,45051,18688,45072,44687,16885,24438,18446,18996,45180,18430,18650,18981,18900,18172,13922,18279,22509,44845,17092,45229,9341,45043,5993,18237,24441,17703,17556,18572,44863,18286,17492,44878,30986,17114,45561,18185,39676,4765,44861,8753,45177,6875,6862,45518,45516,17237,44711,34194,44858,44855,45517,44767,30135,17657)
Unknown column 'np.person' in 'where clause'