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 (44835,44689,18301,6875,5388,44867,19078,18652,45515,30986,17756,14402,28530,45421,30135,44745,44669,45180,17527,18572,44685,44711,6782,13988,28313,14622,45517,17601,44884,44837,44853,18794,44848,45286,44674,32454,17755,18996,44855,44869,5410,17771,30963,44762,44531,17351,45561,18237,44739,17703,17657,17092,13,6609,45567,43800,36472,17839,19057,24411,18172,5993,44687,44866,45518,44640,45262,9341,22509,18353)
Unknown column 'np.person' in 'where clause'