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 (4765,44853,18794,45072,18981,44854,17601,18719,44711,44685,44689,3,17492,17904,44767,31354,45421,17351,44835,44855,18572,18279,44671,45042,24438,3883,17657,32454,44674,44894,13988,5993,8753,5388,36472,17114,30986,17756,45515,44865,14622,18172,44875,18652,18042,28313,44836,44873,9341,17527,45051,18894,44762,45561,44687,44745,28530,17556,45229,18353,18185,18427,43800,44849,13,18301,45180,17848,18446,5259)
Unknown column 'np.person' in 'where clause'