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 (30963,44767,44640,36472,13,5410,17839,16935,17009,17848,18237,45180,30135,13922,19057,18894,3883,17771,44863,44674,45043,18650,44856,14622,44845,32454,45518,6782,43800,44768,31354,45229,45346,44687,5993,18996,44745,44868,44894,45177,44766,45567,9341,45561,18648,44853,18900,17981,44689,44861,18719,34194,13988,22509,45051,18279,24441,24412,44711,44873,18652,28313,18172,17278,44875,17601,18427,18353,17556,17657)
Unknown column 'np.person' in 'where clause'