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 (18237,18894,6609,36472,44764,45286,17527,10402,30963,44640,44849,17703,18650,44866,13988,45346,17351,44531,44875,17009,18301,44863,18572,44861,37267,31354,45515,17335,44865,44739,45229,18652,18688,18279,17755,6875,44762,3,6782,6862,44855,13922,30135,45567,4765,5410,44845,44669,44766,5388,32454,16935,18042,45072,18996,17278,34194,18648,18185,39676,13425,18900,44711,44836,17771,44835,3883,13,18794,44873)
Unknown column 'np.person' in 'where clause'