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 (30986,44894,18430,44851,45277,17527,4765,44711,17556,18648,17601,44845,44764,44674,32454,44848,45421,6875,30963,22509,18042,17771,45567,45561,39676,16935,44739,44855,16885,44869,44868,17981,17835,5410,45051,14402,44765,44878,30135,44531,18981,3883,36472,45177,19057,17756,4686,44835,44687,44775,5388,43800,44870,17278,44836,44854,18894,44865,18688,44689,24412,45072,45042,18572,17703,44669,17009,45229,18185,17335)
Unknown column 'np.person' in 'where clause'