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 (44837,44856,13425,14622,44762,44861,28530,24441,17839,17848,18981,24412,44845,44739,45286,44745,30135,18688,43800,45567,18279,24411,10402,6782,45177,45518,44853,30986,44711,18042,44775,17492,18648,44835,44768,17657,44836,31354,5410,44689,4686,18894,44764,45516,44848,18652,17755,37267,45180,37057,45043,44765,45561,17771,17092,13,19057,17527,45515,45042,36472,17703,45229,28313,17601,44640,39676,44894,5388,9341)
Unknown column 'np.person' in 'where clause'