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 (18719,4765,45561,14622,18648,17278,44640,44768,18301,45518,39676,19078,44851,44875,44854,44870,18042,44848,44764,24441,44531,17009,18996,45051,44894,18650,17703,44856,18794,6862,18185,45177,45516,13,18430,18688,44861,44835,44671,44865,44775,28530,17771,44669,19057,6609,18286,17237,45262,22509,13988,9341,18279,17756,16935,44765,44685,44878,44855,18900,18353,43800,44674,36472,16885,17904,18981,31354,13922,44745)
Unknown column 'np.person' in 'where clause'