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 (6782,45518,18446,44739,45516,17114,44768,44765,9341,44835,17556,44775,18719,44878,45286,5410,45517,13988,30963,45262,18172,8753,18996,44689,16885,18572,5993,28313,24441,18427,44766,45567,18648,17839,44875,44861,17904,17703,44674,30986,44863,45277,18286,3883,45561,44837,13922,4686,28530,44764,17278,44848,3,18650,37057,18301,44867,17527,37267,44836,14402,44669,32454,44745,18900,17657,17756,44870,18688,19057)
Unknown column 'np.person' in 'where clause'