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 (45286,19078,44845,18981,30963,45180,44858,18301,18172,17904,44531,17527,16885,17756,6862,44764,17601,17492,24438,13988,45515,45561,45346,17981,17009,44849,18237,24412,44837,44863,13425,5993,44689,44865,31354,18427,45516,18894,44861,17703,45043,17771,17755,6782,44739,37057,24441,17839,4765,39676,18286,18042,44873,45262,44869,44848,44856,34194,44878,44867,18719,5388,45517,18688,44884,13922,44855,14622,22509,18446)
Unknown column 'np.person' in 'where clause'