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 (45177,18894,44775,44894,18446,32454,44766,5388,17114,45262,45043,45567,44868,44762,22509,34194,37267,45515,18794,44848,17904,5993,44835,45517,4765,44767,18719,17492,45229,17237,3,45421,44674,18996,43800,19078,17756,17657,17527,45072,39676,17278,18286,17601,24441,17981,44845,37057,36472,5259,13922,17839,30135,14622,44745,18648,44685,44853,18427,17848,44689,44854,4686,45180,18430,44878,44531,44865,16885,44739)
Unknown column 'np.person' in 'where clause'