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 (13,44836,17527,44894,44687,6862,44739,17657,44689,36472,44766,17755,13988,16935,44531,17556,14402,5410,45286,17981,45567,13425,18185,18353,5993,45177,17492,45262,44866,18900,17771,44837,44865,45518,39676,6782,44845,18430,44848,44869,44878,3,44873,44762,44861,45516,44765,19057,18279,44858,18427,44854,10402,44671,17009,18042,18652,17904,34194,17848,44851,8753,44867,30135,5388,45277,24438,17092,17278,18301)
Unknown column 'np.person' in 'where clause'