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 (18894,45515,13988,45567,45277,17351,44531,10402,16935,18042,44869,17009,45042,44689,44848,44854,45229,17527,44837,44685,8753,45262,24441,45286,5410,17756,44849,18430,44855,18652,24412,45517,44669,13922,6782,14402,19078,17904,18719,18172,18427,45180,18279,44767,18237,13425,17556,30986,45421,3,30963,44739,45072,17335,44762,44863,44836,28530,18648,44768,22509,17114,45346,44870,44640,9341,19057,34194,44858,17981)
Unknown column 'np.person' in 'where clause'