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 (44858,5993,45277,44873,4686,44837,45042,17839,5259,18688,44884,45286,8753,14622,45567,16885,16935,9341,44745,6875,44861,44766,17835,44768,44767,45421,45561,6782,34194,24438,45051,44869,44849,18648,18981,17771,44685,37057,18042,44671,19057,45517,44765,44762,44836,22509,5410,44689,13922,17527,17756,3883,17092,44640,32454,45177,44669,44854,44845,43800,17335,44863,44870,31354,13425,45518,44855,30135,45043,17556)
Unknown column 'np.person' in 'where clause'