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 (44849,36472,44765,17237,45346,30986,44531,44775,18650,13988,5410,45177,3,45229,9341,24411,44745,28313,18572,44848,44853,24438,5259,18894,18996,18042,18794,17492,18427,37057,45286,17601,17839,17848,44878,18688,17835,6609,4765,30963,44873,17981,44851,45561,31354,45421,4686,45051,44764,32454,44687,13425,45516,19078,14402,17657,44685,45262,44767,44674,17556,17009,44689,3883,44836,44855,17092,44866,43800,44858)
Unknown column 'np.person' in 'where clause'