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 (18648,17335,18430,18172,44866,17657,17092,44894,10402,45072,17771,8753,45516,44768,17601,44875,28530,14622,17835,17527,44848,45262,44531,45517,24412,37057,16935,36472,44856,44863,17114,45518,5259,17755,44775,17492,30963,5410,32454,18237,44868,44689,3,9341,6782,17237,17904,5388,24438,45346,18652,18427,45286,28313,44869,13425,44849,17351,24441,18900,18650,44711,18042,44861,18185,24411,5993,18981,31354,44640)
Unknown column 'np.person' in 'where clause'