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 (17848,8753,44845,44768,44854,44861,44685,17771,44836,28530,9341,18042,44873,6782,24412,18996,18719,13922,43800,17009,18652,17835,44762,17492,18794,17092,44837,45043,45180,17351,44745,17278,44739,18650,18237,6862,18427,17703,44764,45517,44870,44835,45421,13425,44669,17237,18446,13988,45561,10402,44855,13,44869,45262,44867,32454,6875,45515,18286,5388,36472,5259,44894,24411,16885,3,5410,17839,44775,14402)
Unknown column 'np.person' in 'where clause'