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 (17556,13425,44764,28530,44745,34194,44865,45177,17835,44762,5993,14402,44775,3883,17756,44837,3,44687,45229,44873,44853,19057,44836,45517,6875,17092,17492,44878,24411,6782,17527,13988,17904,17114,18185,24441,39676,36472,5388,6862,30986,45346,44689,44671,44845,44739,18286,45561,18446,18981,44711,30135,45072,18719,5410,44854,17755,24412,45180,24438,44855,18572,6609,13922,44894,9341,31354,45567,44868,28313)
Unknown column 'np.person' in 'where clause'