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 (45277,18981,6782,44768,17703,17601,39676,4765,45042,24412,18427,18353,44875,30963,45567,44858,6875,17755,14402,22509,43800,10402,18652,13425,44836,44870,44767,4686,45561,17278,5410,6609,44878,44762,17756,18648,44674,18650,37267,17556,13,18719,17657,44689,44739,5259,17009,44745,28313,16935,17092,24441,13988,18430,44855,44849,37057,17527,45072,17492,6862,9341,44685,17839,18894,44854,45262,18286,44765,44869)
Unknown column 'np.person' in 'where clause'