Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (18427,18900,45277,44640,44745,18981,45262,18648,44689,24412,17527,17351,44837,18430,5259,44764,44861,17601,45072,8753,4765,17237,44854,24411,37267,44855,44711,30135,34194,44878,17755,18237,24441,44853,3,18996,45229,37057,17556,45516,18301,44768,17278,30963,32454,30986,6862,45421,45567,44685,44858,18688,44863,44687,44849,17092,18719,17839,5410,45518,45286,44669,17009,17703,44845,45177,44865,18894,45051,18279)
Unknown column 'np.person' in 'where clause'