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 (18894,45421,45051,44739,44685,45277,24441,45286,18301,5410,18794,37057,5259,3883,19057,18430,45229,44848,44849,44671,44640,18172,18688,17335,18286,45180,44835,17009,17092,18427,18185,44869,44764,18900,22509,32454,45518,45042,31354,18650,45561,18648,44861,44884,45516,44837,45515,17848,44775,5993,44669,44866,13425,44687,30963,18353,18996,16935,28530,17278,44873,18981,45346,14622,44762,44868,13,13988,30135,4765)
Unknown column 'np.person' in 'where clause'