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 (3883,44851,13425,44837,18353,13,44767,14622,28530,17756,32454,44884,13988,45421,18301,45346,18279,6782,19078,44869,44878,44685,45262,44894,24438,44861,44873,44836,44865,18172,45561,30986,44867,30135,17703,45286,45051,18894,18446,45516,45229,3,18427,17839,22509,9341,5259,17981,5993,44856,17237,6862,44768,44689,17556,18996,44674,17848,31354,44848,18650,17771,44739,18688,37057,17755,45043,44669,18237,17492)
Unknown column 'np.person' in 'where clause'