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 (44775,44745,17092,44764,24438,18172,18688,44854,17703,13922,44531,44873,44767,17351,44884,45180,17848,28313,17657,3883,18794,44689,18981,44845,18719,13988,39676,45072,44836,30963,45277,32454,17601,44858,18042,31354,44849,45567,44674,18353,43800,18185,45177,44640,4765,45346,28530,17527,14402,44870,18894,6875,24412,19078,5993,6609,8753,44762,44894,44865,44855,36472,18996,5410,44869,6862,17492,5388,44866,18650)
Unknown column 'np.person' in 'where clause'