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 (17009,18237,13425,45262,18286,16885,17657,30986,44870,44854,5410,18446,44835,6875,44849,45516,24411,34194,44837,28313,22509,13,44873,3883,24438,18894,18172,44875,44853,45177,5388,44865,17335,16935,39676,18648,18427,17492,18042,44674,36472,45561,18430,44764,44689,44739,24441,44711,30963,18353,44878,18279,44768,45043,6782,44531,30135,17278,17848,45286,44766,44845,18719,44869,17703,45277,45346,17756,44767,17839)
Unknown column 'np.person' in 'where clause'