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 (30135,17981,44674,44766,17657,17839,18996,30986,45518,44711,13425,44878,5388,18572,18237,13988,9341,17835,45286,18719,45051,44884,24441,45072,45517,17703,45180,14402,6862,44689,44671,44867,18648,44837,17492,18042,44849,17278,13,17335,32454,43800,17009,17527,39676,17755,18301,24412,17756,45177,44775,44836,4686,44640,24411,18900,8753,45561,44851,18279,44739,18446,5993,44835,16885,18172,44894,44854,18650,45277)
Unknown column 'np.person' in 'where clause'