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 (18286,18185,17278,18996,30963,18172,45516,17351,17009,43800,45517,44768,44762,5993,44856,37057,3,44767,18237,13425,44711,45421,44869,18430,44853,31354,18652,45515,44848,9341,13,45229,37267,17527,44745,17771,6875,44764,45277,14622,17703,4765,44855,17237,44868,44835,44689,44685,24441,44851,45051,17657,44845,39676,14402,44894,30135,3883,22509,44867,30986,18042,44739,18894,44858,6609,6862,18981,18900,44836)
Unknown column 'np.person' in 'where clause'