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 (30135,45180,45286,17657,45421,24412,18430,18650,14402,19057,44851,18719,44739,44836,18996,45567,44687,17556,44767,44854,45051,44875,17771,5388,17703,19078,6862,24441,16935,44869,4686,18572,5410,3883,17492,10402,18237,44674,44870,18353,45277,6875,4765,44863,17237,32454,45043,31354,30963,17114,18894,44861,45177,37057,44858,44868,44671,45229,18648,18172,44865,18286,13,18301,18042,44878,44711,45262,44856,18279)
Unknown column 'np.person' in 'where clause'