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 (17092,18572,6862,44765,4765,44861,17839,5259,44711,39676,18719,44865,44868,22509,44836,45515,44845,45346,17237,44848,43800,44775,45229,18286,45421,10402,24441,45567,24411,45177,45277,44854,44867,45561,18279,44873,18042,19057,18353,17335,17492,44671,18430,44866,18172,6609,5388,6875,16885,17835,6782,17904,44858,44849,18996,44766,28530,17756,5410,44674,44863,44745,45517,45051,14402,44687,13425,18688,3883,19078)
Unknown column 'np.person' in 'where clause'