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 (16885,17703,18648,44854,45277,45177,18430,17904,16935,24441,44687,6862,44669,44848,44768,6875,17527,44856,18688,45516,45517,45567,5388,44873,17492,44836,18279,44845,13,44870,17839,44865,13922,39676,24412,45072,19078,18353,4686,44837,30986,8753,18286,13425,6609,44875,44711,17092,18652,18237,32454,45042,17278,44863,45262,18572,17657,44858,17848,44855,5410,13988,45051,45518,44745,30135,44869,45043,44739,44853)
Unknown column 'np.person' in 'where clause'