When I put in the corrected code on the details page this is what I got.
array(5) {
["blogID"]=>
int(0)
["WADA_Insert_blog"]=>
int(0)
["galleryImageinsert_gImagePicture"]=>
string(22) "thumb_1LauraHawley.jpg"
["galleryImage_gImageID"]=>
int(0)
["WADA_Insert_gallery"]=>
int(0)
}
SQL: SELECT galleryID, galleryName, galleryDescription, galleryActive FROM gallery WHERE galleryID = -1 OR ( -1= -1 AND galleryID= 0)