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 (44848,44766,44711,44873,44762,44854,34194,24438,30135,4765,45043,45517,44861,44845,45346,13,5259,4686,30963,45180,44868,18996,18286,19057,8753,24411,44863,39676,17556,5388,31354,32454,43800,17755,10402,18648,17848,45567,6782,18172,9341,17657,22509,44671,18719,44745,44878,18185,44689,17835,44739,28313,44867,44856,44875,18430,3,44764,44685,44835,44837,45518,44775,17981,36472,18237,44849,44884,44674,44853)
Unknown column 'np.person' in 'where clause'