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 (5410,44745,18042,44869,18572,18286,45180,45177,18430,5388,44766,44768,45517,44866,45042,45346,44848,16885,13,45515,44689,17904,44858,17556,44836,45262,19078,18652,43800,28313,18353,44775,45072,14402,22509,5259,6609,44875,44739,17009,10402,44835,6862,17492,17657,24438,36472,13922,44856,4765,17335,30135,24412,45518,44765,18185,17848,13988,44687,28530,17278,6875,18688,17981,32454,44878,44854,45516,39676,45286)
Unknown column 'np.person' in 'where clause'