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 (36472,45177,18446,30135,18572,3883,44858,18648,16885,18185,44836,18794,13988,39676,44837,5410,44764,28530,17556,17114,44868,22509,6862,45042,17839,18650,44848,3,18981,16935,44674,24441,45421,18237,18042,19057,17601,17492,19078,44745,4765,31354,44856,6875,18900,24412,44531,28313,4686,17009,17835,18688,14622,18279,44766,44884,34194,10402,24438,14402,45051,17237,45286,44845,45515,18353,18894,5993,37267,24411)
Unknown column 'np.person' in 'where clause'