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 (19078,45277,17351,44767,18719,44768,18894,44884,44775,44762,24411,44856,45561,44689,18237,17114,44764,45262,44869,18301,17839,44861,16935,14402,5388,28530,32454,17755,18652,45421,44640,45515,18172,44865,44894,18900,17981,17527,44685,18794,17703,17756,34194,17492,17092,44873,44866,18650,44868,22509,44766,18042,37057,30963,44745,13,5259,17009,6875,45517,6782,43800,45180,24441,16885,18688,44836,17657,24412,18430)
Unknown column 'np.person' in 'where clause'