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 (18427,14622,44531,5259,30135,17009,44687,18794,17657,44853,24412,44762,18279,44894,44861,31354,44854,10402,18572,45262,4686,17703,45286,44764,28313,44671,30986,45277,44863,18237,32454,37267,17756,17492,18286,28530,17771,45567,45072,5993,44848,44711,44674,14402,44856,44884,17848,44858,17527,5410,44837,44855,44745,45515,13922,45516,44866,44849,18042,18894,13425,45229,18430,17556,17839,18172,45518,16885,44765,17835)
Unknown column 'np.person' in 'where clause'