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 (44870,34194,36472,44866,44894,14402,5993,18981,44671,44711,45561,44767,18042,4686,18430,22509,44875,18894,44768,18172,17114,44867,45286,6782,45072,45517,44855,17657,44884,45229,18688,45042,30986,18353,45518,6875,13988,44745,31354,18996,17009,17278,17237,28530,14622,13425,6862,44836,44764,17492,44853,18185,43800,17755,18301,44848,10402,3,44685,9341,44858,45177,17556,44689,44863,13,17351,19078,19057,44854)
Unknown column 'np.person' in 'where clause'