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 (18446,18353,5993,6782,18650,44689,45180,6609,9341,18301,18652,5410,44739,14622,18042,14402,13922,45072,44765,17904,44764,24438,44873,44775,5388,16935,44856,18185,44762,44848,3883,17009,44531,45516,45421,6875,44766,45043,44858,44878,44837,34194,17114,18900,17237,45262,17601,30963,19057,17981,44868,13,18572,18719,3,18279,45229,32454,18648,31354,45286,17335,45567,44767,45051,18688,17703,17351,45515,45277)
Unknown column 'np.person' in 'where clause'