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 (44865,18719,43800,44854,24411,39676,3,44853,44835,18981,13425,8753,45421,4765,44739,5388,44765,45043,36472,5259,18301,44685,44762,17771,17601,44767,18794,17657,18894,45262,5993,18648,45042,18279,18042,14622,44875,18446,13988,3883,44836,6862,18900,44861,16935,45517,18430,44764,30135,16885,37057,45346,13922,17848,17839,45518,45516,44745,17703,18353,44837,6609,18572,44851,24441,17756,14402,17556,45177,17492)
Unknown column 'np.person' in 'where clause'