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 (44768,13425,44745,18894,18185,18794,45051,17527,6609,4765,44765,17009,30986,44640,4686,45262,16935,6782,30135,44854,44869,6875,44853,44849,18427,3,18279,18237,9341,45177,45346,19057,44674,5993,5259,44855,45286,3883,39676,24412,45229,45072,44856,44878,5388,24438,17835,44764,5410,18981,44836,45516,14402,17351,17092,44873,44845,28530,44766,17756,44669,32454,18688,18353,45567,17237,43800,13,17556,44767)
Unknown column 'np.person' in 'where clause'