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 (5259,17335,28530,17835,24412,13922,17556,9341,44762,22509,44856,24438,45518,18900,13425,17657,10402,44689,18648,17839,45286,37267,44870,18650,44674,45262,18981,17092,45515,17009,6782,34194,44865,18572,17904,30135,44878,19078,44867,36472,45517,44854,44873,3883,18430,44875,37057,44866,44671,44868,44775,44768,44853,44836,45177,17601,6862,4765,44739,3,18996,44855,44858,44863,44835,8753,16935,13,44745,18353)
Unknown column 'np.person' in 'where clause'