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 (17771,28313,45177,45561,18446,18719,44853,44865,17703,19078,44855,44848,44711,45518,28530,19057,45072,14622,44762,3883,6875,32454,45567,18279,18688,6862,43800,18185,44863,17755,45042,17657,6782,18286,45277,44689,45262,18301,18353,17848,37267,45043,44531,45286,44884,44765,4765,37057,17601,6609,18237,18042,24412,30963,44764,10402,17278,16935,17237,4686,18652,45229,44894,17835,5993,45515,14402,18427,18648,18894)
Unknown column 'np.person' in 'where clause'