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 (37057,44884,44854,8753,45421,34194,17114,13988,5993,44689,44856,18353,18572,18894,44768,17839,6609,17492,18996,45518,44868,18900,18279,5259,44671,3883,19057,18042,5388,6875,44865,44711,17904,44762,32454,14402,18430,18172,28313,44870,17771,44861,44531,44894,17092,18286,44836,18648,44687,45567,30135,17657,17556,45262,14622,17237,44669,44775,17756,44863,17335,45561,39676,44767,10402,44685,4765,17351,18652,36472)
Unknown column 'np.person' in 'where clause'