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 (5410,17835,24438,44687,44689,18900,18185,17839,18894,17278,44878,45517,16935,17848,17556,19057,17771,45262,17657,44764,9341,17351,17755,3883,45042,6609,10402,44836,45229,5993,28530,44767,43800,18353,45567,22509,17114,45515,45346,24411,18172,44711,18042,44671,44674,44848,5388,44849,44685,44884,30135,44865,14622,44669,18572,4686,44640,18430,18981,45051,45421,44765,37057,18446,18279,44863,44869,16885,44866,37267)
Unknown column 'np.person' in 'where clause'