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 (18688,13922,4686,17756,45516,17527,18996,18648,8753,24411,39676,18353,17351,18172,45229,9341,44762,18042,44858,44863,44669,17556,24438,14402,31354,30135,45561,18794,17237,17835,44671,45177,6862,44837,37267,22509,28530,17009,44861,44878,32454,13988,44767,17492,17839,18981,4765,30963,44739,44689,5388,17092,17114,44851,45515,17601,44869,44531,6782,44845,44835,19057,44775,3883,44768,44674,44884,17335,17771,37057)
Unknown column 'np.person' in 'where clause'