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 (18719,6875,45567,44863,5410,17755,17839,18042,18446,44856,44845,44739,39676,28530,44869,18894,17835,17601,18301,44640,44689,18237,5993,5259,17771,30135,18279,44875,45277,44867,13,45042,17114,44768,44745,16885,45516,45517,44775,17335,3883,32454,6609,16935,18430,22509,44870,4765,17092,17556,18572,44858,44687,44674,44873,44836,44765,44894,44853,45180,45051,18427,24412,6862,28313,44764,18900,13922,18648,31354)
Unknown column 'np.person' in 'where clause'