Question on how to multiplex LDR's

You can’t have a two dimensional matrix to measure sensors like that because there is nothing stopping every thing shorting out, as you have found.

You need to use cascaded wiring to get all your inputs to be separate.