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 (4765,18286,44861,44775,6862,13425,5410,45229,44739,18648,36472,44884,44837,4686,45567,5993,24441,17527,39676,45516,44869,34194,44894,10402,31354,45518,16935,17335,18237,44767,45180,14622,28530,18719,45177,44835,44765,18430,44854,44531,24412,3883,44851,28313,6875,6609,18353,17756,30963,43800,30986,13922,45043,5259,22509,44863,44878,5388,17492,44849,44845,3,17009,18042,18981,44689,44687,45515,44768,18688)
Unknown column 'np.person' in 'where clause'