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 (44866,17755,17839,44853,44739,14622,17848,44768,8753,18301,37057,17237,44875,17278,3,19057,19078,45561,39676,6609,17703,13425,17981,5410,5388,44531,32454,24441,44836,17527,30963,17114,44863,28530,18427,30135,24438,45421,16935,44845,17092,18172,18652,44685,4765,44766,18650,44873,24411,18353,45072,14402,36472,44671,17756,45043,6782,17904,44835,22509,44687,45042,18572,18996,37267,45051,44674,44851,43800,44762)
Unknown column 'np.person' in 'where clause'