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 (45180,45286,17237,44854,44884,3,24412,18237,44768,17839,13,13988,34194,44868,18446,9341,13922,18430,18981,44858,45516,44856,18427,14402,44775,37057,18172,44867,39676,45517,44835,45561,44894,6782,17114,44766,44855,17657,18042,18719,18652,18572,44764,43800,6862,18301,44853,17835,18648,30135,17601,44671,44845,18279,24441,44875,17848,31354,17278,44863,44865,18900,45042,45346,24411,36472,17981,18894,45567,19078)
Unknown column 'np.person' in 'where clause'