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 (31354,37267,44858,44687,18430,17278,28313,17703,44766,34194,13425,18650,24411,45286,17492,9341,44767,6782,45051,14622,32454,44861,5410,5993,44884,18981,22509,45043,17601,18900,17657,8753,45421,44689,18237,44762,44764,17237,44671,45346,6862,45567,44849,44836,30135,18894,17839,18185,44866,17092,45561,37057,17114,45180,17335,6875,44669,18794,44775,16885,44848,44711,18688,6609,17848,24438,44856,44685,44835,18172)
Unknown column 'np.person' in 'where clause'