SELECT H.title, H.source, (SELECT media_id FROM sc_media_reference WHERE block_id=H.id AND table_name=:table_name ORDER BY id DESC) as mrid FROM sc_banner H WHERE H.active=:active ORDER BY H.ordering
Error!: SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared