I cloned a test site for Joomla under SiteGround to WAMP. It runs fine, except for this problem. On SiteGround if I have an SQL error, it shows a page with the error and the SQL statement. On WAMP, I just get a blank page.
I assume I'm missing an Apache parameter somewhere to turn on MySQL error reporting, but I cannot find it after searching here and elsewhere.
Here are the Apache php.ini error reporting parameters:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off