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 (44711,44739,45262,16935,18446,8753,17657,9341,10402,45229,44869,44858,44878,18900,45180,3883,17009,24411,17756,44687,44851,18981,44894,28530,17278,43800,18652,44865,45072,45561,44849,44873,13,17556,44674,6862,44856,6782,19057,24438,18427,14622,44853,3,18648,44836,37267,44764,44845,17755,44767,22509,30963,13425,34194,45515,18794,18650,18185,17703,44765,5388,4686,30135,6609,45177,18719,44762,44745,44848)
Unknown column 'np.person' in 'where clause'