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 (45567,17009,17492,18237,17556,44837,18650,24441,17755,44854,32454,4765,9341,17092,45561,39676,44865,18430,10402,22509,24412,44836,18446,45177,44745,17527,45051,18900,44762,24438,17904,44884,13988,44878,44764,45518,45421,18894,44845,6782,44835,44869,18185,5388,17278,45286,18279,44669,31354,17237,24411,37267,45277,6609,44870,19078,17839,44868,18042,44863,44689,30135,44687,45515,18648,44739,28313,5410,18981,45042)
Unknown column 'np.person' in 'where clause'