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 (17904,44739,44854,44875,24411,37267,6862,44640,18301,17848,44868,13425,18894,3883,39676,44764,30986,45043,45561,13988,18185,18688,44849,45346,45042,44853,44671,45515,17771,18996,44531,44845,30135,45277,44762,28530,6875,5259,17278,44768,17601,44878,6782,44894,14402,44674,44865,22509,44711,16935,28313,44873,18427,9341,18286,18279,17839,3,45516,44858,44884,44863,44855,5410,18353,44869,45180,18900,44685,45518)
Unknown column 'np.person' in 'where clause'