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 (5388,45517,17492,17839,18353,45277,18719,45043,45262,14402,44845,30963,45072,44835,5259,17237,13922,44863,28313,24411,44873,37057,16885,44868,10402,44894,44764,44884,5410,44671,18996,36472,13988,17756,18794,17092,18648,44669,17771,6782,44854,18042,34194,44836,17278,44711,17703,44869,6609,45567,44685,44640,44848,17981,44767,44745,45180,18894,32454,9341,8753,44674,44739,45516,18301,18900,44866,44865,18652,18286)
Unknown column 'np.person' in 'where clause'