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,18652,13988,18572,44674,17601,17835,17904,6782,44835,18719,44745,17756,13,16935,44863,6875,44854,44685,44855,44767,17351,44867,17657,18430,17335,3,28313,4765,22509,6862,44531,45516,44878,24412,45042,44849,18996,4686,45346,44768,5993,17771,39676,31354,18172,5388,18900,17848,18042,10402,3883,44687,45561,45177,44845,45180,44865,17839,18650,45517,32454,9341,18648,5410,44836,44711,44861,44762,36472)
Unknown column 'np.person' in 'where clause'