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 (44870,44867,44765,17756,18794,44845,14622,18719,28530,44531,6609,44849,44687,22509,17981,44853,13,24412,45421,44865,16885,44861,44848,44835,5993,14402,18042,6782,17556,44762,17527,13425,17657,44866,5259,44854,32454,45561,44739,18648,6875,45229,36472,18900,17351,17009,44868,17904,24411,44768,44863,44640,18996,3883,17703,45346,39676,44711,17839,10402,18572,44767,44745,24438,17278,44873,17092,44894,18353,44858)
Unknown column 'np.person' in 'where clause'