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 (17492,44866,16935,5410,18185,17839,24411,44739,45229,44764,44837,13,16885,28313,18572,19078,31354,18286,22509,44878,44868,44745,17755,18981,28530,44711,17848,24441,17527,19057,5993,17904,45346,45180,18446,44855,45262,6782,17092,44531,17703,39676,18279,5259,18427,18430,17657,6875,17601,17237,45042,17556,17771,13988,18301,44894,44767,9341,45072,18688,36472,6862,44863,18648,30986,44865,44869,44685,3883,34194)
Unknown column 'np.person' in 'where clause'