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 (17848,44867,45346,44854,16935,5410,45043,44884,18650,37057,34194,44845,17657,44687,18279,44853,44762,17556,44863,18981,31354,17835,44848,45051,18237,45517,45515,13988,18648,45518,45180,17114,45567,44685,45277,45561,44869,17756,24438,3883,44835,44873,17009,17278,17237,44640,14402,18353,18172,28530,30963,6609,43800,44711,9341,18430,18688,44875,17771,28313,44837,39676,36472,17601,8753,14622,45177,44739,13922,18794)
Unknown column 'np.person' in 'where clause'