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,44762,18996,44837,44867,44766,18172,44849,3883,44745,13,5388,24441,44836,18648,32454,45561,9341,4765,44689,44878,43800,17237,44767,44768,44861,17657,17278,44739,18237,6862,39676,19057,13988,45262,45518,37267,45277,36472,14622,8753,17904,19078,45051,44531,6875,18279,18650,34194,4686,17981,30135,3,18572,44671,24412,14402,45180,5410,44855,44669,17601,17092,18652,18900,45286,6609,44854,24411,13922)
Unknown column 'np.person' in 'where clause'