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 (45262,14402,45042,45286,18719,44858,44531,18427,3,44687,44764,16935,44837,44674,45567,44835,44863,16885,32454,17657,17703,39676,44866,13425,5993,4686,17981,45277,45043,24441,17351,45561,44854,30963,45516,17756,4765,18996,18172,44865,34194,45421,44775,17839,24412,37267,44762,44873,9341,31354,18286,10402,44711,45229,44689,28313,44884,44853,17278,5259,37057,6862,44861,17601,17835,45051,5410,18648,44745,44765)
Unknown column 'np.person' in 'where clause'