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 (18446,18042,22509,18652,17839,44861,44866,5410,28530,44640,44764,37267,19078,44689,5993,44853,14402,24441,45286,44739,18427,45567,44865,45515,44845,44835,45346,44873,3,44854,28313,30986,30135,17601,44863,6609,45518,44870,5388,16885,44848,44762,44671,45177,39676,18430,17755,17835,17009,45561,17657,45262,44869,32454,44884,45421,44868,13425,18286,13,24438,17492,44768,45072,45180,4765,17771,5259,13988,44767)
Unknown column 'np.person' in 'where clause'