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 (24438,44863,44866,18572,30963,16935,17848,17351,17703,43800,18237,44768,32454,18648,13425,17835,24411,18794,24412,44674,18719,44765,18185,44868,44853,44869,44767,24441,44884,17527,17278,5993,45051,45229,44878,45567,5388,44870,44894,44845,36472,45042,13,28313,17755,44856,45177,17009,45286,17839,6862,14402,18427,44764,17756,44689,45516,3883,18042,44669,6782,45262,44640,18688,44873,44685,30986,44739,13922,45515)
Unknown column 'np.person' in 'where clause'