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 (44765,13988,44869,44671,10402,45518,18572,17278,17351,31354,44861,17848,24412,16935,44853,36472,44768,44845,17756,44873,24411,44854,18279,17335,5259,17492,44866,17839,18446,44856,44745,45421,18042,45051,18794,28530,44837,45277,6782,34194,45262,45516,18286,44884,14622,44766,32454,18652,44739,18650,30135,18719,44855,3883,45517,44762,18894,18688,5410,44865,18237,18900,22509,44531,24438,17556,3,17092,18353,17657)
Unknown column 'np.person' in 'where clause'