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 (17351,44762,45567,44865,44766,44836,18286,45286,30135,24412,44848,17009,44689,44853,44854,18446,17981,8753,45515,17703,17755,45518,4765,44835,28313,13988,44845,45072,17839,24438,18353,44739,18688,44856,44849,13,37267,14622,44867,45051,6875,17904,44855,17556,6782,44868,3883,44875,19078,13425,45346,18279,17278,18172,44878,45421,44640,30963,45042,44531,18652,18648,16935,17771,16885,32454,17492,17114,44671,45516)
Unknown column 'np.person' in 'where clause'