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 (5993,14402,17009,5259,19078,18353,28313,19057,17556,43800,30135,13988,14622,45567,17835,17335,18301,17981,18650,44640,8753,32454,44764,45286,44870,44845,13,6862,44775,17904,44856,44854,4686,44837,24411,4765,45517,31354,3,45518,16935,18172,18430,18652,18237,44745,17092,24438,45229,28530,18042,45043,17756,30963,17839,18427,44894,45515,30986,45561,24441,17237,17492,18900,17848,44863,44768,13922,44849,44867)
Unknown column 'np.person' in 'where clause'