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 (28530,17556,44674,44685,17981,22509,6862,39676,45517,17009,17755,44867,5993,13425,9341,44894,44845,44671,44835,18301,44766,13,17839,17848,18042,45042,18172,18185,14622,44531,44848,44865,45072,18719,44762,44866,45177,45262,18446,44878,18353,18286,17756,45567,44856,30963,10402,19057,44669,18996,44858,44870,18652,44689,14402,45561,18427,5259,17657,5388,45518,18894,44767,44837,44775,18237,45346,3,30986,36472)
Unknown column 'np.person' in 'where clause'