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 (6862,44878,6609,17771,45518,45515,17848,5259,44849,24441,24411,17839,37057,13,39676,18353,17009,17278,45072,14402,44848,17904,17114,44640,44766,44669,18688,18185,24438,44674,8753,44687,28530,44685,18648,18301,22509,18237,30963,17601,17981,44865,44863,44745,18794,44767,17755,45051,18446,13922,32454,4686,17492,44531,44775,18996,44835,45229,10402,45262,44762,44884,17092,6782,34194,18650,5388,18430,45346,44894)
Unknown column 'np.person' in 'where clause'