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 (37057,44669,18794,36472,18981,18650,17335,30963,44851,17839,32454,44868,24438,17848,18900,44867,17601,5388,17351,17114,24412,45567,44765,45516,44869,17556,45051,13425,8753,24441,16885,43800,34194,30986,37267,18719,44762,44687,14622,45262,44863,44767,45346,44745,18688,39676,13922,44837,18652,18430,30135,17527,17904,44858,3,44835,44861,24411,45072,18648,45517,6862,6609,45277,18042,18279,18446,17657,44865,18172)
Unknown column 'np.person' in 'where clause'