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 (18572,45516,17755,44775,6875,44767,17839,45277,30986,45515,31354,44845,45180,4686,45567,17771,37057,17351,17114,45072,44869,44745,6782,24412,18794,44764,45518,18042,18446,17835,18688,32454,45042,44866,44855,43800,45262,44865,6609,44875,18652,44762,17657,44739,45286,45517,17009,44873,28530,5410,18719,6862,18650,44689,17492,37267,22509,17981,18648,44835,44671,17556,44669,13922,44868,17601,44861,44848,19057,44849)
Unknown column 'np.person' in 'where clause'