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 (18430,18353,44762,43800,6609,45518,44531,4765,17657,31354,44854,18794,44674,44775,44836,44868,18185,36472,22509,17981,18446,17009,17756,18688,18427,44884,17848,28530,45072,44863,30986,44739,5410,6782,17527,45515,45051,44767,18042,13988,18301,17351,44878,34194,3883,24412,18981,44764,39676,14402,17492,24438,17771,5388,17904,44861,3,44689,17839,6875,18996,45517,44669,44894,45262,13425,18900,44711,5993,44685)
Unknown column 'np.person' in 'where clause'