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 (13988,18648,3,44836,45567,17092,45286,18794,43800,17703,24441,18894,44689,18042,44845,18650,44835,44849,18301,44775,5993,44640,5388,44745,10402,6609,24411,18427,45180,17756,45515,16885,28530,44764,4765,44674,17556,18185,18652,37057,45051,14622,18688,19057,17839,13,5259,17848,18237,5410,45561,17527,44854,44858,44884,18430,18446,45517,18572,44765,44865,45421,17009,44671,17237,44856,30963,17835,44855,37267)
Unknown column 'np.person' in 'where clause'