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 (45177,44853,17839,6875,24412,44687,30135,17657,18652,18794,44856,44836,32454,45517,45051,17755,44894,4686,3883,5259,44851,22509,4765,17335,19057,5388,17835,18172,45346,44669,17703,18286,19078,44762,44764,44685,17114,17492,36472,8753,3,17278,44775,44868,44671,13425,17981,45277,17601,28313,44878,18894,44866,44865,44745,17556,44870,45043,45229,13922,16935,10402,30963,44884,18042,18572,44711,9341,18301,45518)
Unknown column 'np.person' in 'where clause'