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 (45277,36472,24441,13922,44766,17278,44671,44856,44640,5410,18572,18996,44884,17114,5993,44848,44835,14402,44863,4765,44854,18446,44768,18688,44836,18237,44687,13425,5259,22509,6782,18900,44865,44689,18894,44869,37267,44745,44851,3883,45072,44894,44764,44878,19057,17092,39676,17981,44849,45043,45561,17335,45518,17756,13988,18648,44866,24438,30963,3,45517,6875,44861,10402,44674,44873,18286,18185,44875,18042)
Unknown column 'np.person' in 'where clause'