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 (17335,17092,18719,44775,17756,24438,45262,13922,44865,44863,43800,18894,44861,22509,44845,18042,44873,44867,18237,45421,30986,17009,8753,45043,18353,44671,44739,24412,44854,45072,37267,18650,14622,44848,18286,18446,24441,18981,30963,3,31354,17492,45051,18430,9341,6862,17771,17839,44866,18996,45277,36472,45180,24411,44768,45516,44674,19057,44837,44849,44894,13425,18900,13988,5410,18648,44762,18301,5259,19078)
Unknown column 'np.person' in 'where clause'