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 (44739,18900,13,45042,17278,44865,24411,44689,17771,45072,45517,18794,30986,44884,45229,18237,3,45567,44837,32454,45180,30135,44867,24438,18648,45346,44768,45051,18996,28530,44849,13425,44856,5410,18353,17556,44671,44640,6862,17981,17756,17601,45286,6609,44878,44875,18719,6782,44674,5993,44868,45561,18650,17839,24441,44766,17009,19078,44855,44869,45516,17237,8753,45515,17092,17114,16935,17657,18688,14622)
Unknown column 'np.person' in 'where clause'