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 (17904,45515,17835,17556,34194,44858,44853,44851,44762,17771,28313,44878,45042,44854,39676,45516,44867,5993,18353,44849,31354,44836,44764,18172,45072,17981,45043,6782,45421,18427,17278,17527,18719,45517,37057,44884,17492,5259,44870,45277,24411,44856,44640,4765,44866,37267,3,18042,13922,18688,45561,18237,44687,18894,44669,44855,17009,18652,45567,44837,18301,32454,44848,44873,5410,44875,13988,17601,44745,17657)
Unknown column 'np.person' in 'where clause'