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 (44775,45517,36472,44845,4686,44854,17092,44687,44767,18237,24441,17601,44745,17009,17756,18301,18446,17278,44531,18185,44669,44764,17114,44849,18996,5388,3,6875,44873,44861,17839,45072,44674,44848,44867,6782,18353,17771,37267,18894,5259,17527,45042,44768,45051,44868,4765,18794,24411,30986,17351,43800,10402,45346,22509,17848,44856,44762,18652,44875,30135,45262,6862,18279,44711,44689,14402,31354,45177,3883)
Unknown column 'np.person' in 'where clause'