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 (44853,44745,44869,18794,3883,17009,32454,19057,6875,18650,18279,44669,18900,18301,44762,44863,18237,44685,17278,44870,44766,9341,44858,30986,44868,45518,44767,17756,44835,30963,44640,14622,18286,13,17981,45277,44836,18648,18042,45421,44849,14402,45051,44837,36472,31354,17492,17601,45180,45561,44894,17657,13922,44739,45516,44861,44531,44854,37267,39676,5388,44875,10402,44848,44865,45286,18430,17848,44689,24412)
Unknown column 'np.person' in 'where clause'