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 (44685,18650,37267,17601,24441,17114,17835,37057,17839,24411,28313,24412,18185,3,45421,30135,10402,17755,18894,44873,18794,44855,18572,44878,44765,18286,44836,17904,44671,44856,44854,44711,44866,45561,5993,18719,17556,18172,44867,13988,30986,39676,44531,8753,13,45567,36472,44689,18430,30963,17009,5410,17278,44775,45229,44849,18301,34194,13922,44762,17756,43800,28530,14402,18688,32454,18996,44875,45515,19057)
Unknown column 'np.person' in 'where clause'