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 (13988,44866,44848,44745,30963,17756,44861,17556,18301,18650,18981,17755,18353,31354,44851,17492,45262,28530,3,44865,36472,17981,18688,44869,18286,45051,5410,10402,45042,44766,44836,6875,44687,18279,44685,44765,6862,37267,45517,17904,18648,19057,32454,45561,22509,14622,24438,24411,44873,44764,18894,44858,45229,24412,18446,18042,14402,44863,4765,17237,17114,5993,18652,44867,6782,8753,30986,34194,44845,39676)
Unknown column 'np.person' in 'where clause'