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 (18237,6862,43800,45051,17092,13,18279,17527,44640,44765,17237,44866,13425,17756,45262,17278,18719,18427,28530,44855,17835,17657,18301,22509,9341,6609,37267,37057,18688,14402,18286,4765,45286,44671,17904,28313,17839,45516,44768,44766,44894,39676,45277,45229,18185,45346,18894,6875,17601,5993,18042,44858,13922,18996,44685,44836,30135,45561,45515,8753,24441,44884,44687,44856,44775,44835,17556,18981,44865,45180)
Unknown column 'np.person' in 'where clause'