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 (24412,6609,31354,44851,44762,45262,37267,44861,18430,17114,44836,44863,44689,18900,24411,44856,44845,44685,44855,32454,44866,13,18719,44669,44848,44865,4686,44768,30135,44868,17703,44687,5410,17601,17556,18042,44739,45515,9341,44884,44894,18894,39676,18572,18648,13425,44858,16885,44764,17009,17839,18172,17351,45518,18688,19078,18996,18353,44531,18301,45561,28313,44775,17848,17278,44869,6782,44849,45516,44854)
Unknown column 'np.person' in 'where clause'