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 (45180,13,18981,45567,13988,44873,30963,44531,45515,17601,6609,17657,17771,44848,18794,44762,3,44855,5259,30135,5388,18185,24441,44866,17835,18279,17981,44837,45561,17092,44875,44849,45043,36472,45277,18353,3883,44845,14622,44671,17009,18427,44674,44884,44764,17114,45072,17556,45518,24438,45516,45229,44765,18894,17492,13425,18301,31354,45346,44640,44865,44835,18446,5410,44870,18719,18652,6875,18237,44745)
Unknown column 'np.person' in 'where clause'