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 (44711,44671,6782,18353,18279,14402,17278,44835,45518,18688,44768,44775,18648,24411,17657,44867,44845,18652,6875,18185,28530,4765,17848,45042,45180,13922,18301,44836,37057,44855,44669,44866,18042,18427,34194,44764,17755,19057,45286,18996,44849,17009,39676,17237,18430,44873,44858,3883,17703,43800,45517,3,18981,28313,44531,30963,44863,44865,44687,5388,5410,17351,18237,44884,45515,17601,13988,45277,44861,18900)
Unknown column 'np.person' in 'where clause'