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 (17703,19057,44848,44685,24441,14402,18900,44845,30986,44739,17756,18353,44531,10402,17771,44884,18648,18794,18719,44745,44865,17839,44762,45051,32454,36472,44867,18572,37057,17335,18996,17556,45277,5993,44861,24411,17009,28530,44837,44669,18301,45262,18652,17835,44869,17981,45229,44849,30963,44878,5410,44775,18237,6782,6862,44863,44866,28313,44873,44640,44767,6875,17278,16935,45042,24438,34194,17527,45286,3)
Unknown column 'np.person' in 'where clause'