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 (44863,17527,18894,45515,44875,17601,37057,18688,45051,44640,44745,44689,44854,43800,18650,6862,17278,44861,44855,45516,44775,16935,28530,17492,18042,44685,16885,17755,24441,13922,17848,44836,44869,39676,5259,18353,18652,32454,31354,18185,22509,45421,44766,17657,24438,17237,18427,18301,44669,45043,18981,17335,30963,17009,5388,17839,44851,13,18446,44894,44845,17703,45346,18430,44671,44837,19057,45180,5993,44768)
Unknown column 'np.person' in 'where clause'