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 (10402,44863,44845,45516,9341,18650,17904,44866,6782,44894,44853,32454,44849,44836,18572,13988,44685,17092,45262,17492,6875,44689,44674,18430,18894,44884,5410,45072,39676,18981,44868,34194,17771,44851,18042,44768,45515,18996,44531,13922,44870,17756,18286,44762,17848,44711,44745,19057,36472,18652,44669,17703,24441,44640,44848,8753,44855,17556,44767,31354,44861,45561,44671,44835,17351,16885,22509,28530,28313,17278)
Unknown column 'np.person' in 'where clause'