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,5410,18648,37057,44870,44766,17009,44671,45177,18279,45567,17351,44865,24411,44845,18446,32454,17703,18900,45180,44745,44762,45515,44768,44873,3883,17527,44669,45421,4765,22509,18652,45517,34194,17981,17114,13988,18650,18688,44867,13922,45346,44775,44854,18427,18572,17755,5993,17278,17839,45043,6609,16935,17492,18981,44848,18894,24412,28530,18286,17771,44674,30135,31354,44837,17657,13425,44855,45286,5259)
Unknown column 'np.person' in 'where clause'