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 (44875,44856,44837,31354,45262,18042,16935,36472,44868,28313,24438,17657,18719,5388,45229,18301,18446,18794,17527,44767,44775,13,17981,18185,18353,44858,14622,45043,18427,44855,44762,17904,5259,6875,17009,17703,44865,19057,44869,45042,44687,6609,45177,44835,44531,18430,18981,18688,6782,44849,44873,24411,44765,3883,17771,17839,13922,37057,18648,45515,44878,22509,45180,5410,18279,44866,18894,17756,17335,44745)
Unknown column 'np.person' in 'where clause'