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 (18301,17009,18353,4686,17601,24441,45517,44894,44674,44845,44884,44711,6862,18237,44848,45051,44836,45561,18981,18446,5993,44531,14622,44739,18652,17278,45515,44868,18650,24411,44768,17492,45286,13922,14402,18894,36472,44689,43800,17703,44856,5259,45177,18996,44858,18688,17114,44767,30135,6609,44669,45567,6782,16885,18430,34194,44764,17835,45277,17092,44853,30986,44867,44835,18042,24412,45043,9341,17756,3883)
Unknown column 'np.person' in 'where clause'