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 (18353,17009,18042,18996,5410,44861,24411,13425,31354,45051,14622,44865,44837,44768,17904,44849,44853,34194,17492,45043,5388,17092,18900,44739,17114,17527,44845,44640,44884,36472,44689,45346,18279,13988,18652,13922,44873,17703,10402,45561,14402,18650,44855,17237,28313,8753,45229,32454,44764,18719,6862,45277,44851,17835,44767,17755,37267,45515,19057,30963,44848,44669,44685,18894,44863,17556,45518,28530,43800,44674)
Unknown column 'np.person' in 'where clause'