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 (24438,18688,16885,17657,44858,44711,13425,31354,4686,44835,44849,44853,45042,45262,18279,45421,19078,17556,45346,44687,18894,17771,18794,4765,44845,44854,28313,44531,44863,36472,6875,44848,17755,44764,30963,6862,14402,18172,45561,32454,44689,18446,34194,18301,5410,17601,17839,39676,24411,45229,45277,13988,6609,44870,44867,18353,44873,37057,43800,9341,44868,10402,17092,18650,13922,18042,5993,45517,44674,44671)
Unknown column 'np.person' in 'where clause'