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 (17092,17848,44687,18279,44674,45518,39676,17839,6609,30963,45517,32454,44868,45515,17527,18042,44745,43800,3883,45051,45180,24438,13988,44866,45516,44739,44851,24441,45229,17904,44861,44531,17703,45262,44865,28313,18719,44837,18572,19057,44849,44869,17278,34194,31354,44775,6782,44685,5993,18650,18185,5259,18894,45561,22509,44855,14402,13,44894,18172,18427,24412,44767,37267,18652,30135,37057,44765,4765,6875)
Unknown column 'np.person' in 'where clause'