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 (18286,45561,17835,44762,44865,18648,44870,45042,18794,32454,14402,17755,17492,36472,44685,17351,44689,44766,18185,44764,44687,44884,5993,44745,44894,44640,17114,18172,34194,17237,37267,6609,18301,44851,17009,18446,45177,17771,18353,13922,45043,18279,31354,44853,44836,39676,13425,45286,30963,28530,9341,45229,44835,44671,22509,17839,17904,18900,44768,45518,45516,24438,45277,18719,45567,6875,18688,13988,44875,10402)
Unknown column 'np.person' in 'where clause'